Class Value.StringSet (1.19.0)

public static final class Value.StringSet extends GeneratedMessageV3 implements Value.StringSetOrBuilder

A string set value that can hold a set of strings. The maximum length of each string is 200 characters and there can be a maximum of 50 strings in the string set.

Protobuf type google.cloud.resourcesettings.v1.Value.StringSet

Static Fields

VALUES_FIELD_NUMBER

public static final int VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Value.StringSet getDefaultInstance()
Returns
TypeDescription
Value.StringSet

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Value.StringSet.Builder newBuilder()
Returns
TypeDescription
Value.StringSet.Builder

newBuilder(Value.StringSet prototype)

public static Value.StringSet.Builder newBuilder(Value.StringSet prototype)
Parameter
NameDescription
prototypeValue.StringSet
Returns
TypeDescription
Value.StringSet.Builder

parseDelimitedFrom(InputStream input)

public static Value.StringSet parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Value.StringSet parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Value.StringSet parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Value.StringSet parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Value.StringSet parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Value.StringSet parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Value.StringSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.StringSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Value.StringSet> parser()
Returns
TypeDescription
Parser<StringSet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Value.StringSet getDefaultInstanceForType()
Returns
TypeDescription
Value.StringSet

getParserForType()

public Parser<Value.StringSet> getParserForType()
Returns
TypeDescription
Parser<StringSet>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValues(int index)

public String getValues(int index)

The strings in the set

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

The strings in the set

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

The strings in the set

repeated string values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

The strings in the set

repeated string values = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the values.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Value.StringSet.Builder newBuilderForType()
Returns
TypeDescription
Value.StringSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Value.StringSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Value.StringSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Value.StringSet.Builder toBuilder()
Returns
TypeDescription
Value.StringSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException