Class ChatSpaceLinkData.Builder (0.27.0)

public static final class ChatSpaceLinkData.Builder extends GeneratedMessageV3.Builder<ChatSpaceLinkData.Builder> implements ChatSpaceLinkDataOrBuilder

Data for Chat space links.

Protobuf type google.chat.v1.ChatSpaceLinkData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChatSpaceLinkData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

build()

public ChatSpaceLinkData build()
Returns
TypeDescription
ChatSpaceLinkData

buildPartial()

public ChatSpaceLinkData buildPartial()
Returns
TypeDescription
ChatSpaceLinkData

clear()

public ChatSpaceLinkData.Builder clear()
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ChatSpaceLinkData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

clearMessage()

public ChatSpaceLinkData.Builder clearMessage()

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

string message = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ChatSpaceLinkData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

clearSpace()

public ChatSpaceLinkData.Builder clearSpace()

The space of the linked Chat space resource.

Format: spaces/{space}

string space = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

clearThread()

public ChatSpaceLinkData.Builder clearThread()

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

string thread = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

clone()

public ChatSpaceLinkData.Builder clone()
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

getDefaultInstanceForType()

public ChatSpaceLinkData getDefaultInstanceForType()
Returns
TypeDescription
ChatSpaceLinkData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

string message = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

string message = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for message.

getSpace()

public String getSpace()

The space of the linked Chat space resource.

Format: spaces/{space}

string space = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The space.

getSpaceBytes()

public ByteString getSpaceBytes()

The space of the linked Chat space resource.

Format: spaces/{space}

string space = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for space.

getThread()

public String getThread()

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

string thread = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The thread.

getThreadBytes()

public ByteString getThreadBytes()

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

string thread = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for thread.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ChatSpaceLinkData other)

public ChatSpaceLinkData.Builder mergeFrom(ChatSpaceLinkData other)
Parameter
NameDescription
otherChatSpaceLinkData
Returns
TypeDescription
ChatSpaceLinkData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ChatSpaceLinkData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ChatSpaceLinkData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChatSpaceLinkData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ChatSpaceLinkData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

setMessage(String value)

public ChatSpaceLinkData.Builder setMessage(String value)

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

string message = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public ChatSpaceLinkData.Builder setMessageBytes(ByteString value)

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

string message = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ChatSpaceLinkData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides

setSpace(String value)

public ChatSpaceLinkData.Builder setSpace(String value)

The space of the linked Chat space resource.

Format: spaces/{space}

string space = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The space to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setSpaceBytes(ByteString value)

public ChatSpaceLinkData.Builder setSpaceBytes(ByteString value)

The space of the linked Chat space resource.

Format: spaces/{space}

string space = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for space to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setThread(String value)

public ChatSpaceLinkData.Builder setThread(String value)

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

string thread = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The thread to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setThreadBytes(ByteString value)

public ChatSpaceLinkData.Builder setThreadBytes(ByteString value)

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

string thread = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for thread to set.

Returns
TypeDescription
ChatSpaceLinkData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ChatSpaceLinkData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChatSpaceLinkData.Builder
Overrides