Class AccessSecretVersionResponse.Builder (2.43.0)

public static final class AccessSecretVersionResponse.Builder extends GeneratedMessageV3.Builder<AccessSecretVersionResponse.Builder> implements AccessSecretVersionResponseOrBuilder

Response message for SecretManagerService.AccessSecretVersion.

Protobuf type google.cloud.secretmanager.v1beta2.AccessSecretVersionResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessSecretVersionResponse build()
Returns
Type Description
AccessSecretVersionResponse

buildPartial()

public AccessSecretVersionResponse buildPartial()
Returns
Type Description
AccessSecretVersionResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AccessSecretVersionResponse.Builder clearName()

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

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

Returns
Type Description
AccessSecretVersionResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public AccessSecretVersionResponse.Builder clearPayload()

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Returns
Type Description
AccessSecretVersionResponse.Builder

clone()

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

getDefaultInstanceForType()

public AccessSecretVersionResponse getDefaultInstanceForType()
Returns
Type Description
AccessSecretVersionResponse

getDescriptorForType()

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

getName()

public String getName()

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

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

Returns
Type Description
ByteString

The bytes for name.

getPayload()

public SecretPayload getPayload()

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Returns
Type Description
SecretPayload

The payload.

getPayloadBuilder()

public SecretPayload.Builder getPayloadBuilder()

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Returns
Type Description
SecretPayload.Builder

getPayloadOrBuilder()

public SecretPayloadOrBuilder getPayloadOrBuilder()

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Returns
Type Description
SecretPayloadOrBuilder

hasPayload()

public boolean hasPayload()

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Returns
Type Description
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessSecretVersionResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(SecretPayload value)

public AccessSecretVersionResponse.Builder mergePayload(SecretPayload value)

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Parameter
Name Description
value SecretPayload
Returns
Type Description
AccessSecretVersionResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccessSecretVersionResponse.Builder setName(String value)

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccessSecretVersionResponse.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccessSecretVersionResponse.Builder setNameBytes(ByteString value)

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccessSecretVersionResponse.Builder

This builder for chaining.

setPayload(SecretPayload value)

public AccessSecretVersionResponse.Builder setPayload(SecretPayload value)

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Parameter
Name Description
value SecretPayload
Returns
Type Description
AccessSecretVersionResponse.Builder

setPayload(SecretPayload.Builder builderForValue)

public AccessSecretVersionResponse.Builder setPayload(SecretPayload.Builder builderForValue)

Secret payload

.google.cloud.secretmanager.v1beta2.SecretPayload payload = 2;

Parameter
Name Description
builderForValue SecretPayload.Builder
Returns
Type Description
AccessSecretVersionResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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