public static final class Variant.Builder extends GeneratedMessageV3.Builder<Variant.Builder> implements VariantOrBuilder Variant represents the content of a ResourceBundle variant.
Protobuf type google.cloud.configdelivery.v1beta.Variant
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Variant.BuilderImplements
VariantOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllResources(Iterable<String> values)
public Variant.Builder addAllResources(Iterable<String> values)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The resources to add. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Variant.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
addResources(String value)
public Variant.Builder addResources(String value)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resources to add. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
addResourcesBytes(ByteString value)
public Variant.Builder addResourcesBytes(ByteString value)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the resources to add. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
build()
public Variant build()| Returns | |
|---|---|
| Type | Description |
Variant |
|
buildPartial()
public Variant buildPartial()| Returns | |
|---|---|
| Type | Description |
Variant |
|
clear()
public Variant.Builder clear()| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clearCreateTime()
public Variant.Builder clearCreateTime()Output only. [Output only] Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Variant.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clearLabels()
public Variant.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clearName()
public Variant.Builder clearName()Identifier. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Variant.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clearResources()
public Variant.Builder clearResources()Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
clearUpdateTime()
public Variant.Builder clearUpdateTime()Output only. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
clone()
public Variant.Builder clone()| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Variant getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Variant |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.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 to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.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 to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.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. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getResources(int index)
public String getResources(int index)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The resources at the given index. |
getResourcesBytes(int index)
public ByteString getResourcesBytes(int index)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the resources at the given index. |
getResourcesCount()
public int getResourcesCount()Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The count of resources. |
getResourcesList()
public ProtocolStringList getResourcesList()Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the resources. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. [Output only] Update time stamp
.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. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.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 = 5 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.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 |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Variant.Builder mergeCreateTime(Timestamp value)Output only. [Output only] Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
mergeFrom(Variant other)
public Variant.Builder mergeFrom(Variant other)| Parameter | |
|---|---|
| Name | Description |
other |
Variant |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Variant.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Variant.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Variant.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
mergeUpdateTime(Timestamp value)
public Variant.Builder mergeUpdateTime(Timestamp value)Output only. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
putAllLabels(Map<String,String> values)
public Variant.Builder putAllLabels(Map<String,String> values)Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
putLabels(String key, String value)
public Variant.Builder putLabels(String key, String value)Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
removeLabels(String key)
public Variant.Builder removeLabels(String key)Optional. labels to represent any metadata associated with the variant.
map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setCreateTime(Timestamp value)
public Variant.Builder setCreateTime(Timestamp value)Output only. [Output only] Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Variant.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. [Output only] Create time stamp
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Variant.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setName(String value)
public Variant.Builder setName(String value)Identifier. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Variant.Builder setNameBytes(ByteString value)Identifier. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Variant.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setResources(int index, String value)
public Variant.Builder setResources(int index, String value)Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe resources to set. |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Variant.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setUpdateTime(Timestamp value)
public Variant.Builder setUpdateTime(Timestamp value)Output only. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Variant.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. [Output only] Update time stamp
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Variant.Builder |
|