Class PositionSectionRequest (0.55.0)

public final class PositionSectionRequest extends GeneratedMessage implements PositionSectionRequestOrBuilder

Request message for positioning a section.

Protobuf type google.chat.v1.PositionSectionRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RELATIVE_POSITION_FIELD_NUMBER

public static final int RELATIVE_POSITION_FIELD_NUMBER
Field Value
Type Description
int

SORT_ORDER_FIELD_NUMBER

public static final int SORT_ORDER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PositionSectionRequest getDefaultInstance()
Returns
Type Description
PositionSectionRequest

getDescriptor()

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

newBuilder()

public static PositionSectionRequest.Builder newBuilder()
Returns
Type Description
PositionSectionRequest.Builder

newBuilder(PositionSectionRequest prototype)

public static PositionSectionRequest.Builder newBuilder(PositionSectionRequest prototype)
Parameter
Name Description
prototype PositionSectionRequest
Returns
Type Description
PositionSectionRequest.Builder

parseDelimitedFrom(InputStream input)

public static PositionSectionRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PositionSectionRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PositionSectionRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PositionSectionRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PositionSectionRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PositionSectionRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PositionSectionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PositionSectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PositionSectionRequest> parser()
Returns
Type Description
Parser<PositionSectionRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PositionSectionRequest getDefaultInstanceForType()
Returns
Type Description
PositionSectionRequest

getName()

public String getName()

Required. The resource name of the section to position.

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

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 to position.

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

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<PositionSectionRequest> getParserForType()
Returns
Type Description
Parser<PositionSectionRequest>
Overrides

getPositionCase()

public PositionSectionRequest.PositionCase getPositionCase()
Returns
Type Description
PositionSectionRequest.PositionCase

getRelativePosition()

public PositionSectionRequest.Position getRelativePosition()

Optional. The relative position of the section in the list of sections.

.google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PositionSectionRequest.Position

The relativePosition.

getRelativePositionValue()

public int getRelativePositionValue()

Optional. The relative position of the section in the list of sections.

.google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for relativePosition.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSortOrder()

public int getSortOrder()

Optional. The absolute position of the section in the list of sections. The position must be greater than 0. If the position is greater than the number of sections, the section will be appended to the end of the list. This operation inserts the section at the given position and shifts the original section at that position, and those below it, to the next position.

int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The sortOrder.

hasRelativePosition()

public boolean hasRelativePosition()

Optional. The relative position of the section in the list of sections.

.google.chat.v1.PositionSectionRequest.Position relative_position = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the relativePosition field is set.

hasSortOrder()

public boolean hasSortOrder()

Optional. The absolute position of the section in the list of sections. The position must be greater than 0. If the position is greater than the number of sections, the section will be appended to the end of the list. This operation inserts the section at the given position and shifts the original section at that position, and those below it, to the next position.

int32 sort_order = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sortOrder field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PositionSectionRequest.Builder newBuilderForType()
Returns
Type Description
PositionSectionRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PositionSectionRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PositionSectionRequest.Builder
Overrides

toBuilder()

public PositionSectionRequest.Builder toBuilder()
Returns
Type Description
PositionSectionRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException