public static final class AttributeValues.StringAttributeValues.Builder extends GeneratedMessageV3.Builder<AttributeValues.StringAttributeValues.Builder> implements AttributeValues.StringAttributeValuesOrBuilder
The attribute values of data type string or JSON.
Protobuf type google.cloud.apihub.v1.AttributeValues.StringAttributeValues
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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];
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeValues.StringAttributeValues.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The values to add.
|
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 |
ByteString
The bytes of the values to add.
|
build()
public AttributeValues.StringAttributeValues build()
buildPartial()
public AttributeValues.StringAttributeValues buildPartial()
clear()
public AttributeValues.StringAttributeValues.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AttributeValues.StringAttributeValues.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeValues.StringAttributeValues.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public AttributeValues.StringAttributeValues.Builder clone()
Overrides
getDefaultInstanceForType()
public AttributeValues.StringAttributeValues getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
int
The 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 |
int
The 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];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AttributeValues.StringAttributeValues other)
public AttributeValues.StringAttributeValues.Builder mergeFrom(AttributeValues.StringAttributeValues other)
public AttributeValues.StringAttributeValues.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AttributeValues.StringAttributeValues.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeValues.StringAttributeValues.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeValues.StringAttributeValues.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeValues.StringAttributeValues.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeValues.StringAttributeValues.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
int
The index to set the value at.
|
value |
String
The values to set.
|