Class CreateMessagePinRequest.Builder (0.63.0)

public static final class CreateMessagePinRequest.Builder extends GeneratedMessage.Builder<CreateMessagePinRequest.Builder> implements CreateMessagePinRequestOrBuilder

Request message for creating a message pin.

Protobuf type google.chat.v1.CreateMessagePinRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateMessagePinRequest build()
Returns
Type Description
CreateMessagePinRequest

buildPartial()

public CreateMessagePinRequest buildPartial()
Returns
Type Description
CreateMessagePinRequest

clear()

public CreateMessagePinRequest.Builder clear()
Returns
Type Description
CreateMessagePinRequest.Builder
Overrides

clearMessagePin()

public CreateMessagePinRequest.Builder clearMessagePin()

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMessagePinRequest.Builder

clearParent()

public CreateMessagePinRequest.Builder clearParent()

Required. The parent space in which to create the message pin. Format: spaces/{space}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateMessagePinRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateMessagePinRequest getDefaultInstanceForType()
Returns
Type Description
CreateMessagePinRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessagePin()

public MessagePin getMessagePin()

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessagePin

The messagePin.

getMessagePinBuilder()

public MessagePin.Builder getMessagePinBuilder()

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessagePin.Builder

getMessagePinOrBuilder()

public MessagePinOrBuilder getMessagePinOrBuilder()

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessagePinOrBuilder

getParent()

public String getParent()

Required. The parent space in which to create the message pin. Format: spaces/{space}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent space in which to create the message pin. Format: spaces/{space}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasMessagePin()

public boolean hasMessagePin()

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the messagePin field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMessagePinRequest other)

public CreateMessagePinRequest.Builder mergeFrom(CreateMessagePinRequest other)
Parameter
Name Description
other CreateMessagePinRequest
Returns
Type Description
CreateMessagePinRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateMessagePinRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessagePinRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateMessagePinRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateMessagePinRequest.Builder
Overrides

mergeMessagePin(MessagePin value)

public CreateMessagePinRequest.Builder mergeMessagePin(MessagePin value)

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MessagePin
Returns
Type Description
CreateMessagePinRequest.Builder

setMessagePin(MessagePin value)

public CreateMessagePinRequest.Builder setMessagePin(MessagePin value)

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MessagePin
Returns
Type Description
CreateMessagePinRequest.Builder

setMessagePin(MessagePin.Builder builderForValue)

public CreateMessagePinRequest.Builder setMessagePin(MessagePin.Builder builderForValue)

Required. The MessagePin to create.

.google.chat.v1.MessagePin message_pin = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MessagePin.Builder
Returns
Type Description
CreateMessagePinRequest.Builder

setParent(String value)

public CreateMessagePinRequest.Builder setParent(String value)

Required. The parent space in which to create the message pin. Format: spaces/{space}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMessagePinRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMessagePinRequest.Builder setParentBytes(ByteString value)

Required. The parent space in which to create the message pin. Format: spaces/{space}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateMessagePinRequest.Builder

This builder for chaining.