Class Parameter.Builder (0.1.0)

public static final class Parameter.Builder extends GeneratedMessageV3.Builder<Parameter.Builder> implements ParameterOrBuilder

Message describing Parameter resource

Protobuf type google.cloud.parametermanager.v1.Parameter

Implements

ParameterOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Parameter build()
Returns
Type Description
Parameter

buildPartial()

public Parameter buildPartial()
Returns
Type Description
Parameter

clear()

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

clearCreateTime()

public Parameter.Builder clearCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Parameter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public Parameter.Builder clearFormat()

Optional. Specifies the format of a Parameter.

.google.cloud.parametermanager.v1.ParameterFormat format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Parameter.Builder

This builder for chaining.

clearLabels()

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

clearName()

public Parameter.Builder clearName()

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.

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

Returns
Type Description
Parameter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyMember()

public Parameter.Builder clearPolicyMember()

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Parameter.Builder

clearUpdateTime()

public Parameter.Builder clearUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Parameter.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Parameter getDefaultInstanceForType()
Returns
Type Description
Parameter

getDescriptorForType()

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

getFormat()

public ParameterFormat getFormat()

Optional. Specifies the format of a Parameter.

.google.cloud.parametermanager.v1.ParameterFormat format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterFormat

The format.

getFormatValue()

public int getFormatValue()

Optional. Specifies the format of a Parameter.

.google.cloud.parametermanager.v1.ParameterFormat format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for format.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

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

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.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 as key value pairs

map<string, string> labels = 4 [(.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 as key value pairs

map<string, string> labels = 4 [(.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()

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.

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

Returns
Type Description
ByteString

The bytes for name.

getPolicyMember()

public ResourcePolicyMember getPolicyMember()

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.iam.v1.ResourcePolicyMember

The policyMember.

getPolicyMemberBuilder()

public ResourcePolicyMember.Builder getPolicyMemberBuilder()

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.iam.v1.ResourcePolicyMember.Builder

getPolicyMemberOrBuilder()

public ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder()

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.iam.v1.ResourcePolicyMemberOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasPolicyMember()

public boolean hasPolicyMember()

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the policyMember field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
boolean

Whether the updateTime 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 Parameter.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Parameter.Builder

mergeFrom(Parameter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicyMember(ResourcePolicyMember value)

public Parameter.Builder mergePolicyMember(ResourcePolicyMember value)

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.iam.v1.ResourcePolicyMember
Returns
Type Description
Parameter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Parameter.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Parameter.Builder

putAllLabels(Map<String,String> values)

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

Optional. Labels as key value pairs

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

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

putLabels(String key, String value)

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

Optional. Labels as key value pairs

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

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

removeLabels(String key)

public Parameter.Builder removeLabels(String key)

Optional. Labels as key value pairs

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

Parameter
Name Description
key String
Returns
Type Description
Parameter.Builder

setCreateTime(Timestamp value)

public Parameter.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Parameter.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Parameter.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Parameter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(ParameterFormat value)

public Parameter.Builder setFormat(ParameterFormat value)

Optional. Specifies the format of a Parameter.

.google.cloud.parametermanager.v1.ParameterFormat format = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ParameterFormat

The format to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setFormatValue(int value)

public Parameter.Builder setFormatValue(int value)

Optional. Specifies the format of a Parameter.

.google.cloud.parametermanager.v1.ParameterFormat format = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for format to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setName(String value)

public Parameter.Builder setName(String value)

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Parameter.Builder setNameBytes(ByteString value)

Identifier. [Output only] The resource name of the Parameter in the format projects/*/locations/*/parameters/*.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setPolicyMember(ResourcePolicyMember value)

public Parameter.Builder setPolicyMember(ResourcePolicyMember value)

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.iam.v1.ResourcePolicyMember
Returns
Type Description
Parameter.Builder

setPolicyMember(ResourcePolicyMember.Builder builderForValue)

public Parameter.Builder setPolicyMember(ResourcePolicyMember.Builder builderForValue)

Output only. [Output-only] policy member strings of a Google Cloud resource.

.google.iam.v1.ResourcePolicyMember policy_member = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.iam.v1.ResourcePolicyMember.Builder
Returns
Type Description
Parameter.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Parameter.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Parameter.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Parameter.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Parameter.Builder