Class ReusableConfig.Builder (2.46.0)

public static final class ReusableConfig.Builder extends GeneratedMessageV3.Builder<ReusableConfig.Builder> implements ReusableConfigOrBuilder

A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.

Protobuf type google.cloud.security.privateca.v1beta1.ReusableConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReusableConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReusableConfig.Builder
Overrides

build()

public ReusableConfig build()
Returns
Type Description
ReusableConfig

buildPartial()

public ReusableConfig buildPartial()
Returns
Type Description
ReusableConfig

clear()

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

clearCreateTime()

public ReusableConfig.Builder clearCreateTime()

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReusableConfig.Builder

clearDescription()

public ReusableConfig.Builder clearDescription()

Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReusableConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReusableConfig.Builder
Overrides

clearLabels()

public ReusableConfig.Builder clearLabels()
Returns
Type Description
ReusableConfig.Builder

clearName()

public ReusableConfig.Builder clearName()

Output only. The resource path for this ReusableConfig in the format projects/*/locations/*/reusableConfigs/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReusableConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReusableConfig.Builder
Overrides

clearUpdateTime()

public ReusableConfig.Builder clearUpdateTime()

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReusableConfig.Builder

clearValues()

public ReusableConfig.Builder clearValues()

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReusableConfig.Builder

clone()

public ReusableConfig.Builder clone()
Returns
Type Description
ReusableConfig.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ReusableConfig getDefaultInstanceForType()
Returns
Type Description
ReusableConfig

getDescription()

public String getDescription()

Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The resource path for this ReusableConfig in the format projects/*/locations/*/reusableConfigs/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource path for this ReusableConfig in the format projects/*/locations/*/reusableConfigs/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getValues()

public ReusableConfigValues getValues()

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReusableConfigValues

The values.

getValuesBuilder()

public ReusableConfigValues.Builder getValuesBuilder()

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReusableConfigValues.Builder

getValuesOrBuilder()

public ReusableConfigValuesOrBuilder getValuesOrBuilder()

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReusableConfigValuesOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasValues()

public boolean hasValues()

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the values field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ReusableConfig.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ReusableConfig.Builder

mergeFrom(ReusableConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReusableConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReusableConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ReusableConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ReusableConfig.Builder

mergeValues(ReusableConfigValues value)

public ReusableConfig.Builder mergeValues(ReusableConfigValues value)

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ReusableConfigValues
Returns
Type Description
ReusableConfig.Builder

putAllLabels(Map<String,String> values)

public ReusableConfig.Builder putAllLabels(Map<String,String> values)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ReusableConfig.Builder

putLabels(String key, String value)

public ReusableConfig.Builder putLabels(String key, String value)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
ReusableConfig.Builder

removeLabels(String key)

public ReusableConfig.Builder removeLabels(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ReusableConfig.Builder

setCreateTime(Timestamp value)

public ReusableConfig.Builder setCreateTime(Timestamp value)

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ReusableConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ReusableConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this ReusableConfig was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReusableConfig.Builder

setDescription(String value)

public ReusableConfig.Builder setDescription(String value)

Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ReusableConfig.Builder setDescriptionBytes(ByteString value)

Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReusableConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReusableConfig.Builder
Overrides

setName(String value)

public ReusableConfig.Builder setName(String value)

Output only. The resource path for this ReusableConfig in the format projects/*/locations/*/reusableConfigs/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReusableConfig.Builder setNameBytes(ByteString value)

Output only. The resource path for this ReusableConfig in the format projects/*/locations/*/reusableConfigs/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReusableConfig.Builder

This builder for chaining.

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

public ReusableConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReusableConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReusableConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReusableConfig.Builder
Overrides

setUpdateTime(Timestamp value)

public ReusableConfig.Builder setUpdateTime(Timestamp value)

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ReusableConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ReusableConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which this ReusableConfig was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReusableConfig.Builder

setValues(ReusableConfigValues value)

public ReusableConfig.Builder setValues(ReusableConfigValues value)

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ReusableConfigValues
Returns
Type Description
ReusableConfig.Builder

setValues(ReusableConfigValues.Builder builderForValue)

public ReusableConfig.Builder setValues(ReusableConfigValues.Builder builderForValue)

Required. The config values.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ReusableConfigValues.Builder
Returns
Type Description
ReusableConfig.Builder