Class AddSecretVersionRequest.Builder (2.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddSecretVersionRequest build()
Returns
TypeDescription
AddSecretVersionRequest

buildPartial()

public AddSecretVersionRequest buildPartial()
Returns
TypeDescription
AddSecretVersionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

Returns
TypeDescription
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
TypeDescription
AddSecretVersionRequest.Builder

clone()

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

getDefaultInstanceForType()

public AddSecretVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
AddSecretVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

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

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

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

public AddSecretVersionRequest.Builder mergeFrom(AddSecretVersionRequest other)
Parameter
NameDescription
otherAddSecretVersionRequest
Returns
TypeDescription
AddSecretVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AddSecretVersionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSecretPayload
Returns
TypeDescription
AddSecretVersionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

Parameter
NameDescription
valueString

The parent to set.

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

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueSecretPayload
Returns
TypeDescription
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
NameDescription
builderForValueSecretPayload.Builder
Returns
TypeDescription
AddSecretVersionRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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