Class CreateSectionRequest.Builder (0.55.0)

public static final class CreateSectionRequest.Builder extends GeneratedMessage.Builder<CreateSectionRequest.Builder> implements CreateSectionRequestOrBuilder

Request message for creating a section.

Protobuf type google.chat.v1.CreateSectionRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateSectionRequest build()
Returns
Type Description
CreateSectionRequest

buildPartial()

public CreateSectionRequest buildPartial()
Returns
Type Description
CreateSectionRequest

clear()

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

clearParent()

public CreateSectionRequest.Builder clearParent()

Required. The parent resource name where the section is created.

Format: users/{user}

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

Returns
Type Description
CreateSectionRequest.Builder

This builder for chaining.

clearSection()

public CreateSectionRequest.Builder clearSection()

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSectionRequest.Builder

getDefaultInstanceForType()

public CreateSectionRequest getDefaultInstanceForType()
Returns
Type Description
CreateSectionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource name where the section is created.

Format: users/{user}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name where the section is created.

Format: users/{user}

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

Returns
Type Description
ByteString

The bytes for parent.

getSection()

public Section getSection()

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Section

The section.

getSectionBuilder()

public Section.Builder getSectionBuilder()

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Section.Builder

getSectionOrBuilder()

public SectionOrBuilder getSectionOrBuilder()

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SectionOrBuilder

hasSection()

public boolean hasSection()

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the section field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSectionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSection(Section value)

public CreateSectionRequest.Builder mergeSection(Section value)

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Section
Returns
Type Description
CreateSectionRequest.Builder

setParent(String value)

public CreateSectionRequest.Builder setParent(String value)

Required. The parent resource name where the section is created.

Format: users/{user}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSectionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSectionRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name where the section is created.

Format: users/{user}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSectionRequest.Builder

This builder for chaining.

setSection(Section value)

public CreateSectionRequest.Builder setSection(Section value)

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Section
Returns
Type Description
CreateSectionRequest.Builder

setSection(Section.Builder builderForValue)

public CreateSectionRequest.Builder setSection(Section.Builder builderForValue)

Required. The section to create.

.google.chat.v1.Section section = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Section.Builder
Returns
Type Description
CreateSectionRequest.Builder