public static final class CreateMessagePinRequest.Builder extends GeneratedMessage.Builder<CreateMessagePinRequest.Builder> implements CreateMessagePinRequestOrBuilderRequest message for creating a message pin.
Protobuf type google.chat.v1.CreateMessagePinRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateMessagePinRequest.BuilderImplements
CreateMessagePinRequestOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateMessagePinRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateMessagePinRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateMessagePinRequest.Builder |
This builder for chaining. |