Class ReusableConfig.Builder (2.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReusableConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReusableConfig.Builder
Overrides

build()

public ReusableConfig build()
Returns
TypeDescription
ReusableConfig

buildPartial()

public ReusableConfig buildPartial()
Returns
TypeDescription
ReusableConfig

clear()

public ReusableConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReusableConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReusableConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReusableConfig.Builder
Overrides

clearLabels()

public ReusableConfig.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
ReusableConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReusableConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReusableConfig.Builder

clone()

public ReusableConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ReusableConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels with user-defined metadata.

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

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels with user-defined metadata.

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

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getValues()

public ReusableConfigValues getValues()

Required. The config values.

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

Returns
TypeDescription
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
TypeDescription
ReusableConfigValues.Builder

getValuesOrBuilder()

public ReusableConfigValuesOrBuilder getValuesOrBuilder()

Required. The config values.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the values field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ReusableConfig.Builder

mergeFrom(ReusableConfig other)

public ReusableConfig.Builder mergeFrom(ReusableConfig other)
Parameter
NameDescription
otherReusableConfig
Returns
TypeDescription
ReusableConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReusableConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReusableConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReusableConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReusableConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReusableConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueReusableConfigValues
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ReusableConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReusableConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReusableConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReusableConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueReusableConfigValues
Returns
TypeDescription
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
NameDescription
builderForValueReusableConfigValues.Builder
Returns
TypeDescription
ReusableConfig.Builder