Class DeleteSchemaRevisionRequest.Builder (1.126.6)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteSchemaRevisionRequest build()
Returns
TypeDescription
DeleteSchemaRevisionRequest

buildPartial()

public DeleteSchemaRevisionRequest buildPartial()
Returns
TypeDescription
DeleteSchemaRevisionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DeleteSchemaRevisionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteSchemaRevisionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteSchemaRevisionRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteSchemaRevisionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for revisionId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DeleteSchemaRevisionRequest other)

public DeleteSchemaRevisionRequest.Builder mergeFrom(DeleteSchemaRevisionRequest other)
Parameter
NameDescription
otherDeleteSchemaRevisionRequest
Returns
TypeDescription
DeleteSchemaRevisionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteSchemaRevisionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
DeleteSchemaRevisionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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