public static final class StringValue.Builder extends GeneratedMessage.Builder<StringValue.Builder> implements StringValueOrBuilderStringValue represents a property that has a string value type.
Protobuf type google.cloud.apptopology.v1.StringValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StringValue.BuilderImplements
StringValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAllowedValues(Iterable<String> values)
public StringValue.Builder addAllAllowedValues(Iterable<String> values)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The allowedValues to add. |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
addAllowedValues(String value)
public StringValue.Builder addAllowedValues(String value)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allowedValues to add. |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
addAllowedValuesBytes(ByteString value)
public StringValue.Builder addAllowedValuesBytes(ByteString value)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the allowedValues to add. |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
build()
public StringValue build()| Returns | |
|---|---|
| Type | Description |
StringValue |
|
buildPartial()
public StringValue buildPartial()| Returns | |
|---|---|
| Type | Description |
StringValue |
|
clear()
public StringValue.Builder clear()| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
|
clearAllowedValues()
public StringValue.Builder clearAllowedValues()OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
clearRepeated()
public StringValue.Builder clearRepeated()OPTIONAL Whether the property is repeated.
bool repeated = 1;
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
getAllowedValues(int index)
public String getAllowedValues(int index)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The allowedValues at the given index. |
getAllowedValuesBytes(int index)
public ByteString getAllowedValuesBytes(int index)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the allowedValues at the given index. |
getAllowedValuesCount()
public int getAllowedValuesCount()OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of allowedValues. |
getAllowedValuesList()
public ProtocolStringList getAllowedValuesList()OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the allowedValues. |
getDefaultInstanceForType()
public StringValue getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StringValue |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRepeated()
public boolean getRepeated()OPTIONAL Whether the property is repeated.
bool repeated = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The repeated. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StringValue other)
public StringValue.Builder mergeFrom(StringValue other)| Parameter | |
|---|---|
| Name | Description |
other |
StringValue |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StringValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StringValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
|
setAllowedValues(int index, String value)
public StringValue.Builder setAllowedValues(int index, String value)OPTIONAL Allowed values for the property. If provided, the property value must be one of the allowed values.
repeated string allowed_values = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe allowedValues to set. |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |
setRepeated(boolean value)
public StringValue.Builder setRepeated(boolean value)OPTIONAL Whether the property is repeated.
bool repeated = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe repeated to set. |
| Returns | |
|---|---|
| Type | Description |
StringValue.Builder |
This builder for chaining. |