Class DeleteSchemaRevisionRequest.Builder (1.131.0)

public static final class DeleteSchemaRevisionRequest.Builder extends GeneratedMessageV3.Builder<DeleteSchemaRevisionRequest.Builder> implements DeleteSchemaRevisionRequestOrBuilder

Request for the DeleteSchemaRevision method.

Protobuf type google.pubsub.v1.DeleteSchemaRevisionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteSchemaRevisionRequest build()
Returns
Type Description
DeleteSchemaRevisionRequest

buildPartial()

public DeleteSchemaRevisionRequest buildPartial()
Returns
Type Description
DeleteSchemaRevisionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DeleteSchemaRevisionRequest.Builder clearName()

Required. The name of the schema revision to be deleted, with a revision ID explicitly included.

Example: projects/123/schemas/my-schema@c7cfa2a8

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

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisionId() (deprecated)

public DeleteSchemaRevisionRequest.Builder clearRevisionId()

Deprecated. google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See google/pubsub/v1/schema.proto;l=331

Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the name parameter.

string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteSchemaRevisionRequest getDefaultInstanceForType()
Returns
Type Description
DeleteSchemaRevisionRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the schema revision to be deleted, with a revision ID explicitly included.

Example: projects/123/schemas/my-schema@c7cfa2a8

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the schema revision to be deleted, with a revision ID explicitly included.

Example: projects/123/schemas/my-schema@c7cfa2a8

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

Returns
Type Description
ByteString

The bytes for name.

getRevisionId() (deprecated)

public String getRevisionId()

Deprecated. google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See google/pubsub/v1/schema.proto;l=331

Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the name parameter.

string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes() (deprecated)

public ByteString getRevisionIdBytes()

Deprecated. google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See google/pubsub/v1/schema.proto;l=331

Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the name parameter.

string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for revisionId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DeleteSchemaRevisionRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteSchemaRevisionRequest.Builder setName(String value)

Required. The name of the schema revision to be deleted, with a revision ID explicitly included.

Example: projects/123/schemas/my-schema@c7cfa2a8

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteSchemaRevisionRequest.Builder setNameBytes(ByteString value)

Required. The name of the schema revision to be deleted, with a revision ID explicitly included.

Example: projects/123/schemas/my-schema@c7cfa2a8

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

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

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

setRevisionId(String value) (deprecated)

public DeleteSchemaRevisionRequest.Builder setRevisionId(String value)

Deprecated. google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See google/pubsub/v1/schema.proto;l=331

Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the name parameter.

string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value) (deprecated)

public DeleteSchemaRevisionRequest.Builder setRevisionIdBytes(ByteString value)

Deprecated. google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See google/pubsub/v1/schema.proto;l=331

Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the name parameter.

string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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