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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AddSecretVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AddSecretVersionRequest build()
buildPartial()
public AddSecretVersionRequest buildPartial()
clear()
public AddSecretVersionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AddSecretVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AddSecretVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearPayload()
public AddSecretVersionRequest.Builder clearPayload()
Required. The secret payload of the SecretVersion.
.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public AddSecretVersionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public AddSecretVersionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
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];
getPayloadBuilder()
public SecretPayload.Builder getPayloadBuilder()
Required. The secret payload of the SecretVersion.
.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
getPayloadOrBuilder()
public SecretPayloadOrBuilder getPayloadOrBuilder()
Required. The secret payload of the SecretVersion.
.google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AddSecretVersionRequest other)
public AddSecretVersionRequest.Builder mergeFrom(AddSecretVersionRequest other)
public AddSecretVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AddSecretVersionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AddSecretVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AddSecretVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AddSecretVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AddSecretVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides