Class ChatSpaceLinkData.Builder (0.15.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChatSpaceLinkData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChatSpaceLinkData.Builder
Overrides

build()

public ChatSpaceLinkData build()
Returns
Type Description
ChatSpaceLinkData

buildPartial()

public ChatSpaceLinkData buildPartial()
Returns
Type Description
ChatSpaceLinkData

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ChatSpaceLinkData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ChatSpaceLinkData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ChatSpaceLinkData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ChatSpaceLinkData.Builder

This builder for chaining.

clone()

public ChatSpaceLinkData.Builder clone()
Returns
Type Description
ChatSpaceLinkData.Builder
Overrides

getDefaultInstanceForType()

public ChatSpaceLinkData getDefaultInstanceForType()
Returns
Type Description
ChatSpaceLinkData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for thread.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ChatSpaceLinkData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChatSpaceLinkData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChatSpaceLinkData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ChatSpaceLinkData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The message to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The space to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for space to set.

Returns
Type Description
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
Name Description
value String

The thread to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for thread to set.

Returns
Type Description
ChatSpaceLinkData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ChatSpaceLinkData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChatSpaceLinkData.Builder
Overrides