Class CreateChannelRequest.Builder (1.53.0)

public static final class CreateChannelRequest.Builder extends GeneratedMessageV3.Builder<CreateChannelRequest.Builder> implements CreateChannelRequestOrBuilder

The request message for the CreateChannel method.

Protobuf type google.cloud.eventarc.v1.CreateChannelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateChannelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateChannelRequest.Builder
Overrides

build()

public CreateChannelRequest build()
Returns
Type Description
CreateChannelRequest

buildPartial()

public CreateChannelRequest buildPartial()
Returns
Type Description
CreateChannelRequest

clear()

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

clearChannel()

public CreateChannelRequest.Builder clearChannel()

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateChannelRequest.Builder

clearChannelId()

public CreateChannelRequest.Builder clearChannelId()

Required. The user-provided ID to be assigned to the channel.

string channel_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateChannelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateChannelRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateChannelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateChannelRequest.Builder
Overrides

clearParent()

public CreateChannelRequest.Builder clearParent()

Required. The parent collection in which to add this channel.

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

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateChannelRequest.Builder clearValidateOnly()

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

clone()

public CreateChannelRequest.Builder clone()
Returns
Type Description
CreateChannelRequest.Builder
Overrides

getChannel()

public Channel getChannel()

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Channel

The channel.

getChannelBuilder()

public Channel.Builder getChannelBuilder()

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Channel.Builder

getChannelId()

public String getChannelId()

Required. The user-provided ID to be assigned to the channel.

string channel_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The channelId.

getChannelIdBytes()

public ByteString getChannelIdBytes()

Required. The user-provided ID to be assigned to the channel.

string channel_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for channelId.

getChannelOrBuilder()

public ChannelOrBuilder getChannelOrBuilder()

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ChannelOrBuilder

getDefaultInstanceForType()

public CreateChannelRequest getDefaultInstanceForType()
Returns
Type Description
CreateChannelRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent collection in which to add this channel.

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 collection in which to add this channel.

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The validateOnly.

hasChannel()

public boolean hasChannel()

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the channel field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChannel(Channel value)

public CreateChannelRequest.Builder mergeChannel(Channel value)

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Channel
Returns
Type Description
CreateChannelRequest.Builder

mergeFrom(CreateChannelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateChannelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateChannelRequest.Builder
Overrides

setChannel(Channel value)

public CreateChannelRequest.Builder setChannel(Channel value)

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Channel
Returns
Type Description
CreateChannelRequest.Builder

setChannel(Channel.Builder builderForValue)

public CreateChannelRequest.Builder setChannel(Channel.Builder builderForValue)

Required. The channel to create.

.google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Channel.Builder
Returns
Type Description
CreateChannelRequest.Builder

setChannelId(String value)

public CreateChannelRequest.Builder setChannelId(String value)

Required. The user-provided ID to be assigned to the channel.

string channel_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The channelId to set.

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

setChannelIdBytes(ByteString value)

public CreateChannelRequest.Builder setChannelIdBytes(ByteString value)

Required. The user-provided ID to be assigned to the channel.

string channel_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for channelId to set.

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateChannelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateChannelRequest.Builder
Overrides

setParent(String value)

public CreateChannelRequest.Builder setParent(String value)

Required. The parent collection in which to add this channel.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateChannelRequest.Builder setParentBytes(ByteString value)

Required. The parent collection in which to add this channel.

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
CreateChannelRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateChannelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateChannelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateChannelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateChannelRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateChannelRequest.Builder setValidateOnly(boolean value)

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateChannelRequest.Builder

This builder for chaining.