Class CreateMessageBusRequest.Builder (1.54.0)

public static final class CreateMessageBusRequest.Builder extends GeneratedMessageV3.Builder<CreateMessageBusRequest.Builder> implements CreateMessageBusRequestOrBuilder

The request message for the CreateMessageBus method.

Protobuf type google.cloud.eventarc.v1.CreateMessageBusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMessageBusRequest build()
Returns
Type Description
CreateMessageBusRequest

buildPartial()

public CreateMessageBusRequest buildPartial()
Returns
Type Description
CreateMessageBusRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessageBus()

public CreateMessageBusRequest.Builder clearMessageBus()

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMessageBusRequest.Builder

clearMessageBusId()

public CreateMessageBusRequest.Builder clearMessageBusId()

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

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

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMessageBusRequest.Builder clearParent()

Required. The parent collection in which to add this message bus.

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

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateMessageBusRequest.Builder clearValidateOnly()

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

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

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMessageBusRequest getDefaultInstanceForType()
Returns
Type Description
CreateMessageBusRequest

getDescriptorForType()

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

getMessageBus()

public MessageBus getMessageBus()

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessageBus

The messageBus.

getMessageBusBuilder()

public MessageBus.Builder getMessageBusBuilder()

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessageBus.Builder

getMessageBusId()

public String getMessageBusId()

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

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

Returns
Type Description
String

The messageBusId.

getMessageBusIdBytes()

public ByteString getMessageBusIdBytes()

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

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

Returns
Type Description
ByteString

The bytes for messageBusId.

getMessageBusOrBuilder()

public MessageBusOrBuilder getMessageBusOrBuilder()

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MessageBusOrBuilder

getParent()

public String getParent()

Required. The parent collection in which to add this message bus.

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 message bus.

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

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

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

Returns
Type Description
boolean

The validateOnly.

hasMessageBus()

public boolean hasMessageBus()

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the messageBus field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMessageBusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMessageBus(MessageBus value)

public CreateMessageBusRequest.Builder mergeMessageBus(MessageBus value)

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MessageBus
Returns
Type Description
CreateMessageBusRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessageBus(MessageBus value)

public CreateMessageBusRequest.Builder setMessageBus(MessageBus value)

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MessageBus
Returns
Type Description
CreateMessageBusRequest.Builder

setMessageBus(MessageBus.Builder builderForValue)

public CreateMessageBusRequest.Builder setMessageBus(MessageBus.Builder builderForValue)

Required. The message bus to create.

.google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MessageBus.Builder
Returns
Type Description
CreateMessageBusRequest.Builder

setMessageBusId(String value)

public CreateMessageBusRequest.Builder setMessageBusId(String value)

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

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

Parameter
Name Description
value String

The messageBusId to set.

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

setMessageBusIdBytes(ByteString value)

public CreateMessageBusRequest.Builder setMessageBusIdBytes(ByteString value)

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

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

Parameter
Name Description
value ByteString

The bytes for messageBusId to set.

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

setParent(String value)

public CreateMessageBusRequest.Builder setParent(String value)

Required. The parent collection in which to add this message bus.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMessageBusRequest.Builder setParentBytes(ByteString value)

Required. The parent collection in which to add this message bus.

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateMessageBusRequest.Builder setValidateOnly(boolean value)

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

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

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateMessageBusRequest.Builder

This builder for chaining.