Interface PositionSectionRequestOrBuilder (0.55.0)

public interface PositionSectionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract 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 abstract 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.

getPositionCase()

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

getRelativePosition()

public abstract 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 abstract 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.

getSortOrder()

public abstract 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 abstract 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 abstract 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.