Class GetSecretRequest.Builder (2.20.0)

public static final class GetSecretRequest.Builder extends GeneratedMessageV3.Builder<GetSecretRequest.Builder> implements GetSecretRequestOrBuilder

Request message for SecretManagerService.GetSecret.

Protobuf type google.cloud.secretmanager.v1.GetSecretRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSecretRequest build()
Returns
TypeDescription
GetSecretRequest

buildPartial()

public GetSecretRequest buildPartial()
Returns
TypeDescription
GetSecretRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetSecretRequest.Builder clearName()

Required. The resource name of the Secret, in the format projects/*/secrets/*.

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

Returns
TypeDescription
GetSecretRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetSecretRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSecretRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the Secret, in the format projects/*/secrets/*.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Secret, in the format projects/*/secrets/*.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetSecretRequest other)

public GetSecretRequest.Builder mergeFrom(GetSecretRequest other)
Parameter
NameDescription
otherGetSecretRequest
Returns
TypeDescription
GetSecretRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetSecretRequest.Builder setName(String value)

Required. The resource name of the Secret, in the format projects/*/secrets/*.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetSecretRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSecretRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Secret, in the format projects/*/secrets/*.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetSecretRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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