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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AddSecretVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AddSecretVersionRequest build()
Returns
buildPartial()
public AddSecretVersionRequest buildPartial()
Returns
clear()
public AddSecretVersionRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AddSecretVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AddSecretVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public AddSecretVersionRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AddSecretVersionRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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/*
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getPayload()
public SecretPayload getPayload()
Required. The secret payload of the SecretVersion.
.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
getPayloadOrBuilder()
public SecretPayloadOrBuilder getPayloadOrBuilder()
Required. The secret payload of the SecretVersion.
.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AddSecretVersionRequest other)
public AddSecretVersionRequest.Builder mergeFrom(AddSecretVersionRequest other)
Parameter
Returns
public AddSecretVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AddSecretVersionRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AddSecretVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AddSecretVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The parent to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AddSecretVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AddSecretVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides