public static final class AttributeValues.StringAttributeValues.Builder extends GeneratedMessage.Builder<AttributeValues.StringAttributeValues.Builder> implements AttributeValues.StringAttributeValuesOrBuilderThe attribute values of data type string or JSON.
Protobuf type google.cloud.apihub.v1.AttributeValues.StringAttributeValues
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AttributeValues.StringAttributeValues.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllValues(Iterable<String> values)
public AttributeValues.StringAttributeValues.Builder addAllValues(Iterable<String> values)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The values to add. |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
This builder for chaining. |
addValues(String value)
public AttributeValues.StringAttributeValues.Builder addValues(String value)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe values to add. |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
This builder for chaining. |
addValuesBytes(ByteString value)
public AttributeValues.StringAttributeValues.Builder addValuesBytes(ByteString value)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the values to add. |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
This builder for chaining. |
build()
public AttributeValues.StringAttributeValues build()| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues |
|
buildPartial()
public AttributeValues.StringAttributeValues buildPartial()| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues |
|
clear()
public AttributeValues.StringAttributeValues.Builder clear()| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
|
clearValues()
public AttributeValues.StringAttributeValues.Builder clearValues()Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AttributeValues.StringAttributeValues getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getValues(int index)
public String getValues(int index)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The values at the given index. |
getValuesBytes(int index)
public ByteString getValuesBytes(int index)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the values at the given index. |
getValuesCount()
public int getValuesCount()Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of values. |
getValuesList()
public ProtocolStringList getValuesList()Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the values. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AttributeValues.StringAttributeValues other)
public AttributeValues.StringAttributeValues.Builder mergeFrom(AttributeValues.StringAttributeValues other)| Parameter | |
|---|---|
| Name | Description |
other |
AttributeValues.StringAttributeValues |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeValues.StringAttributeValues.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttributeValues.StringAttributeValues.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
|
setValues(int index, String value)
public AttributeValues.StringAttributeValues.Builder setValues(int index, String value)Required. The attribute values in case attribute data type is string or JSON.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe values to set. |
| Returns | |
|---|---|
| Type | Description |
AttributeValues.StringAttributeValues.Builder |
This builder for chaining. |