Class CommitSchemaRequest.Builder (1.123.18)

public static final class CommitSchemaRequest.Builder extends GeneratedMessageV3.Builder<CommitSchemaRequest.Builder> implements CommitSchemaRequestOrBuilder

Request for CommitSchema method.

Protobuf type google.pubsub.v1.CommitSchemaRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

build()

public CommitSchemaRequest build()
Returns
TypeDescription
CommitSchemaRequest

buildPartial()

public CommitSchemaRequest buildPartial()
Returns
TypeDescription
CommitSchemaRequest

clear()

public CommitSchemaRequest.Builder clear()
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CommitSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

clearName()

public CommitSchemaRequest.Builder clearName()

Required. The name of the schema we are revising. Format is projects/{project}/schemas/{schema}.

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

Returns
TypeDescription
CommitSchemaRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

clearSchema()

public CommitSchemaRequest.Builder clearSchema()

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CommitSchemaRequest.Builder

clone()

public CommitSchemaRequest.Builder clone()
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

getDefaultInstanceForType()

public CommitSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
CommitSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the schema we are revising. Format is projects/{project}/schemas/{schema}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the schema we are revising. Format is projects/{project}/schemas/{schema}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getSchema()

public Schema getSchema()

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SchemaOrBuilder

hasSchema()

public boolean hasSchema()

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommitSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommitSchemaRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

mergeFrom(CommitSchemaRequest other)

public CommitSchemaRequest.Builder mergeFrom(CommitSchemaRequest other)
Parameter
NameDescription
otherCommitSchemaRequest
Returns
TypeDescription
CommitSchemaRequest.Builder

mergeSchema(Schema value)

public CommitSchemaRequest.Builder mergeSchema(Schema value)

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSchema
Returns
TypeDescription
CommitSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CommitSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

setName(String value)

public CommitSchemaRequest.Builder setName(String value)

Required. The name of the schema we are revising. Format is projects/{project}/schemas/{schema}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CommitSchemaRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CommitSchemaRequest.Builder setNameBytes(ByteString value)

Required. The name of the schema we are revising. Format is projects/{project}/schemas/{schema}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CommitSchemaRequest.Builder

This builder for chaining.

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

public CommitSchemaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides

setSchema(Schema value)

public CommitSchemaRequest.Builder setSchema(Schema value)

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSchema
Returns
TypeDescription
CommitSchemaRequest.Builder

setSchema(Schema.Builder builderForValue)

public CommitSchemaRequest.Builder setSchema(Schema.Builder builderForValue)

Required. The schema revision to commit.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueSchema.Builder
Returns
TypeDescription
CommitSchemaRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CommitSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitSchemaRequest.Builder
Overrides