public static final class PositionSectionRequest.Builder extends GeneratedMessage.Builder<PositionSectionRequest.Builder> implements PositionSectionRequestOrBuilderRequest message for positioning a section.
Protobuf type google.chat.v1.PositionSectionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PositionSectionRequest.BuilderImplements
PositionSectionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PositionSectionRequest build()| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest |
|
buildPartial()
public PositionSectionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest |
|
clear()
public PositionSectionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
|
clearName()
public PositionSectionRequest.Builder clearName()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 |
PositionSectionRequest.Builder |
This builder for chaining. |
clearPosition()
public PositionSectionRequest.Builder clearPosition()| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
|
clearRelativePosition()
public PositionSectionRequest.Builder clearRelativePosition()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.Builder |
This builder for chaining. |
clearSortOrder()
public PositionSectionRequest.Builder clearSortOrder()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 |
PositionSectionRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PositionSectionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PositionSectionRequest other)
public PositionSectionRequest.Builder mergeFrom(PositionSectionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PositionSectionRequest |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PositionSectionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PositionSectionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
|
setName(String value)
public PositionSectionRequest.Builder setName(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public PositionSectionRequest.Builder setNameBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
This builder for chaining. |
setRelativePosition(PositionSectionRequest.Position value)
public PositionSectionRequest.Builder setRelativePosition(PositionSectionRequest.Position value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
PositionSectionRequest.PositionThe relativePosition to set. |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
This builder for chaining. |
setRelativePositionValue(int value)
public PositionSectionRequest.Builder setRelativePositionValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for relativePosition to set. |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
This builder for chaining. |
setSortOrder(int value)
public PositionSectionRequest.Builder setSortOrder(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe sortOrder to set. |
| Returns | |
|---|---|
| Type | Description |
PositionSectionRequest.Builder |
This builder for chaining. |