Class MoveSectionItemRequest.Builder (0.55.0)

public static final class MoveSectionItemRequest.Builder extends GeneratedMessage.Builder<MoveSectionItemRequest.Builder> implements MoveSectionItemRequestOrBuilder

Request message for moving a section item across sections.

Protobuf type google.chat.v1.MoveSectionItemRequest

Static Methods

getDescriptor()

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

Methods

build()

public MoveSectionItemRequest build()
Returns
Type Description
MoveSectionItemRequest

buildPartial()

public MoveSectionItemRequest buildPartial()
Returns
Type Description
MoveSectionItemRequest

clear()

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

clearName()

public MoveSectionItemRequest.Builder clearName()

Required. The resource name of the section item to move.

Format: users/{user}/sections/{section}/items/{item}

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

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.

clearTargetSection()

public MoveSectionItemRequest.Builder clearTargetSection()

Required. The resource name of the section to move the section item to.

Format: users/{user}/sections/{section}

string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public MoveSectionItemRequest getDefaultInstanceForType()
Returns
Type Description
MoveSectionItemRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the section item to move.

Format: users/{user}/sections/{section}/items/{item}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the section item to move.

Format: users/{user}/sections/{section}/items/{item}

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

Returns
Type Description
ByteString

The bytes for name.

getTargetSection()

public String getTargetSection()

Required. The resource name of the section to move the section item to.

Format: users/{user}/sections/{section}

string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetSection.

getTargetSectionBytes()

public ByteString getTargetSectionBytes()

Required. The resource name of the section to move the section item to.

Format: users/{user}/sections/{section}

string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetSection.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MoveSectionItemRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public MoveSectionItemRequest.Builder setName(String value)

Required. The resource name of the section item to move.

Format: users/{user}/sections/{section}/items/{item}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MoveSectionItemRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the section item to move.

Format: users/{user}/sections/{section}/items/{item}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.

setTargetSection(String value)

public MoveSectionItemRequest.Builder setTargetSection(String value)

Required. The resource name of the section to move the section item to.

Format: users/{user}/sections/{section}

string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetSection to set.

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.

setTargetSectionBytes(ByteString value)

public MoveSectionItemRequest.Builder setTargetSectionBytes(ByteString value)

Required. The resource name of the section to move the section item to.

Format: users/{user}/sections/{section}

string target_section = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for targetSection to set.

Returns
Type Description
MoveSectionItemRequest.Builder

This builder for chaining.