Class GenerateEphemeralCertRequest.Builder (0.1.0)

public static final class GenerateEphemeralCertRequest.Builder extends GeneratedMessage.Builder<GenerateEphemeralCertRequest.Builder> implements GenerateEphemeralCertRequestOrBuilder

Ephemeral certificate creation request.

Protobuf type google.cloud.sql.v1beta4.GenerateEphemeralCertRequest

Static Methods

getDescriptor()

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

Methods

build()

public GenerateEphemeralCertRequest build()
Returns
Type Description
GenerateEphemeralCertRequest

buildPartial()

public GenerateEphemeralCertRequest buildPartial()
Returns
Type Description
GenerateEphemeralCertRequest

clear()

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

clearAccessToken()

public GenerateEphemeralCertRequest.Builder clearAccessToken()

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

clearInstance()

public GenerateEphemeralCertRequest.Builder clearInstance()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

clearProject()

public GenerateEphemeralCertRequest.Builder clearProject()

Project ID of the project that contains the instance.

string project = 2;

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

clearPublicKey()

public GenerateEphemeralCertRequest.Builder clearPublicKey()

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

clearReadTime()

public GenerateEphemeralCertRequest.Builder clearReadTime()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateEphemeralCertRequest.Builder

clearValidDuration()

public GenerateEphemeralCertRequest.Builder clearValidDuration()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateEphemeralCertRequest.Builder

getAccessToken()

public String getAccessToken()

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateEphemeralCertRequest getDefaultInstanceForType()
Returns
Type Description
GenerateEphemeralCertRequest

getDescriptorForType()

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

getInstance()

public String getInstance()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
ByteString

The bytes for instance.

getProject()

public String getProject()

Project ID of the project that contains the instance.

string project = 2;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID of the project that contains the instance.

string project = 2;

Returns
Type Description
ByteString

The bytes for project.

getPublicKey()

public String getPublicKey()

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Returns
Type Description
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Returns
Type Description
ByteString

The bytes for publicKey.

getReadTime()

public Timestamp getReadTime()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The readTime.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getValidDuration()

public Duration getValidDuration()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The validDuration.

getValidDurationBuilder()

public Duration.Builder getValidDurationBuilder()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getValidDurationOrBuilder()

public DurationOrBuilder getValidDurationOrBuilder()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasReadTime()

public boolean hasReadTime()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the readTime field is set.

hasValidDuration()

public boolean hasValidDuration()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the validDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateEphemeralCertRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReadTime(Timestamp value)

public GenerateEphemeralCertRequest.Builder mergeReadTime(Timestamp value)

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateEphemeralCertRequest.Builder

mergeValidDuration(Duration value)

public GenerateEphemeralCertRequest.Builder mergeValidDuration(Duration value)

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
GenerateEphemeralCertRequest.Builder

setAccessToken(String value)

public GenerateEphemeralCertRequest.Builder setAccessToken(String value)

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The accessToken to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public GenerateEphemeralCertRequest.Builder setAccessTokenBytes(ByteString value)

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for accessToken to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setInstance(String value)

public GenerateEphemeralCertRequest.Builder setInstance(String value)

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public GenerateEphemeralCertRequest.Builder setInstanceBytes(ByteString value)

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setProject(String value)

public GenerateEphemeralCertRequest.Builder setProject(String value)

Project ID of the project that contains the instance.

string project = 2;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GenerateEphemeralCertRequest.Builder setProjectBytes(ByteString value)

Project ID of the project that contains the instance.

string project = 2;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setPublicKey(String value)

public GenerateEphemeralCertRequest.Builder setPublicKey(String value)

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Parameter
Name Description
value String

The publicKey to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setPublicKeyBytes(ByteString value)

public GenerateEphemeralCertRequest.Builder setPublicKeyBytes(ByteString value)

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Parameter
Name Description
value ByteString

The bytes for publicKey to set.

Returns
Type Description
GenerateEphemeralCertRequest.Builder

This builder for chaining.

setReadTime(Timestamp value)

public GenerateEphemeralCertRequest.Builder setReadTime(Timestamp value)

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateEphemeralCertRequest.Builder

setReadTime(Timestamp.Builder builderForValue)

public GenerateEphemeralCertRequest.Builder setReadTime(Timestamp.Builder builderForValue)

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateEphemeralCertRequest.Builder

setValidDuration(Duration value)

public GenerateEphemeralCertRequest.Builder setValidDuration(Duration value)

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
GenerateEphemeralCertRequest.Builder

setValidDuration(Duration.Builder builderForValue)

public GenerateEphemeralCertRequest.Builder setValidDuration(Duration.Builder builderForValue)

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateEphemeralCertRequest.Builder