Class AddSecretVersionRequest.Builder (2.47.0)

public static final class AddSecretVersionRequest.Builder extends GeneratedMessageV3.Builder<AddSecretVersionRequest.Builder> implements AddSecretVersionRequestOrBuilder

Request message for SecretManagerService.AddSecretVersion.

Protobuf type google.cloud.secretmanager.v1.AddSecretVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddSecretVersionRequest build()
Returns
Type Description
AddSecretVersionRequest

buildPartial()

public AddSecretVersionRequest buildPartial()
Returns
Type Description
AddSecretVersionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public AddSecretVersionRequest.Builder clearParent()

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

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

Returns
Type Description
AddSecretVersionRequest.Builder

This builder for chaining.

clearPayload()

public AddSecretVersionRequest.Builder clearPayload()

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddSecretVersionRequest.Builder

clone()

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

getDefaultInstanceForType()

public AddSecretVersionRequest getDefaultInstanceForType()
Returns
Type Description
AddSecretVersionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

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

Returns
Type Description
ByteString

The bytes for parent.

getPayload()

public SecretPayload getPayload()

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecretPayload

The payload.

getPayloadBuilder()

public SecretPayload.Builder getPayloadBuilder()

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecretPayload.Builder

getPayloadOrBuilder()

public SecretPayloadOrBuilder getPayloadOrBuilder()

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecretPayloadOrBuilder

hasPayload()

public boolean hasPayload()

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

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(AddSecretVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(SecretPayload value)

public AddSecretVersionRequest.Builder mergePayload(SecretPayload value)

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SecretPayload
Returns
Type Description
AddSecretVersionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public AddSecretVersionRequest.Builder setParent(String value)

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
AddSecretVersionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public AddSecretVersionRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
AddSecretVersionRequest.Builder

This builder for chaining.

setPayload(SecretPayload value)

public AddSecretVersionRequest.Builder setPayload(SecretPayload value)

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SecretPayload
Returns
Type Description
AddSecretVersionRequest.Builder

setPayload(SecretPayload.Builder builderForValue)

public AddSecretVersionRequest.Builder setPayload(SecretPayload.Builder builderForValue)

Required. The secret payload of the SecretVersion.

.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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