Class AccessSecretVersionResponse.Builder (2.3.0)

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

Response message for SecretManagerService.AccessSecretVersion.

Protobuf type google.cloud.secretmanager.v1.AccessSecretVersionResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessSecretVersionResponse build()
Returns
TypeDescription
AccessSecretVersionResponse

buildPartial()

public AccessSecretVersionResponse buildPartial()
Returns
TypeDescription
AccessSecretVersionResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AccessSecretVersionResponse.Builder clearName()

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

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

Returns
TypeDescription
AccessSecretVersionResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public AccessSecretVersionResponse.Builder clearPayload()

Secret payload

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

Returns
TypeDescription
AccessSecretVersionResponse.Builder

clone()

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

getDefaultInstanceForType()

public AccessSecretVersionResponse getDefaultInstanceForType()
Returns
TypeDescription
AccessSecretVersionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for name.

getPayload()

public SecretPayload getPayload()

Secret payload

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

Returns
TypeDescription
SecretPayload

The payload.

getPayloadBuilder()

public SecretPayload.Builder getPayloadBuilder()

Secret payload

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

Returns
TypeDescription
SecretPayload.Builder

getPayloadOrBuilder()

public SecretPayloadOrBuilder getPayloadOrBuilder()

Secret payload

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

Returns
TypeDescription
SecretPayloadOrBuilder

hasPayload()

public boolean hasPayload()

Secret payload

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

Returns
TypeDescription
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccessSecretVersionResponse other)

public AccessSecretVersionResponse.Builder mergeFrom(AccessSecretVersionResponse other)
Parameter
NameDescription
otherAccessSecretVersionResponse
Returns
TypeDescription
AccessSecretVersionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(SecretPayload value)

public AccessSecretVersionResponse.Builder mergePayload(SecretPayload value)

Secret payload

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

Parameter
NameDescription
valueSecretPayload
Returns
TypeDescription
AccessSecretVersionResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccessSecretVersionResponse.Builder setName(String value)

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

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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/*.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AccessSecretVersionResponse.Builder

This builder for chaining.

setPayload(SecretPayload value)

public AccessSecretVersionResponse.Builder setPayload(SecretPayload value)

Secret payload

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

Parameter
NameDescription
valueSecretPayload
Returns
TypeDescription
AccessSecretVersionResponse.Builder

setPayload(SecretPayload.Builder builderForValue)

public AccessSecretVersionResponse.Builder setPayload(SecretPayload.Builder builderForValue)

Secret payload

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

Parameter
NameDescription
builderForValueSecretPayload.Builder
Returns
TypeDescription
AccessSecretVersionResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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