Class RotateSecretRequest.Builder (2.95.0)

public static final class RotateSecretRequest.Builder extends GeneratedMessage.Builder<RotateSecretRequest.Builder> implements RotateSecretRequestOrBuilder

Request message for SecretManagerService.RotateSecret.

Protobuf type google.cloud.secretmanager.v1.RotateSecretRequest

Static Methods

getDescriptor()

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

Methods

build()

public RotateSecretRequest build()
Returns
Type Description
RotateSecretRequest

buildPartial()

public RotateSecretRequest buildPartial()
Returns
Type Description
RotateSecretRequest

clear()

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

clearParent()

public RotateSecretRequest.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
RotateSecretRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RotateSecretRequest getDefaultInstanceForType()
Returns
Type Description
RotateSecretRequest

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RotateSecretRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setParent(String value)

public RotateSecretRequest.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
RotateSecretRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public RotateSecretRequest.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
RotateSecretRequest.Builder

This builder for chaining.