Class CreateMessageBusRequest (1.55.0)

public final class CreateMessageBusRequest extends GeneratedMessageV3 implements CreateMessageBusRequestOrBuilder

The request message for the CreateMessageBus method.

Protobuf type google.cloud.eventarc.v1.CreateMessageBusRequest

Static Fields

MESSAGE_BUS_FIELD_NUMBER

public static final int MESSAGE_BUS_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_BUS_ID_FIELD_NUMBER

public static final int MESSAGE_BUS_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateMessageBusRequest getDefaultInstance()
Returns
Type Description
CreateMessageBusRequest

getDescriptor()

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

newBuilder()

public static CreateMessageBusRequest.Builder newBuilder()
Returns
Type Description
CreateMessageBusRequest.Builder

newBuilder(CreateMessageBusRequest prototype)

public static CreateMessageBusRequest.Builder newBuilder(CreateMessageBusRequest prototype)
Parameter
Name Description
prototype CreateMessageBusRequest
Returns
Type Description
CreateMessageBusRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateMessageBusRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateMessageBusRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateMessageBusRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateMessageBusRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateMessageBusRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateMessageBusRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateMessageBusRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateMessageBusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateMessageBusRequest> parser()
Returns
Type Description
Parser<CreateMessageBusRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateMessageBusRequest getDefaultInstanceForType()
Returns
Type Description
CreateMessageBusRequest

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.

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.

getParserForType()

public Parser<CreateMessageBusRequest> getParserForType()
Returns
Type Description
Parser<CreateMessageBusRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateMessageBusRequest.Builder newBuilderForType()
Returns
Type Description
CreateMessageBusRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateMessageBusRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateMessageBusRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateMessageBusRequest.Builder toBuilder()
Returns
Type Description
CreateMessageBusRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException