Class Parameter (0.21.0)

public final class Parameter extends GeneratedMessageV3 implements ParameterOrBuilder

User-provided Parameters.

Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.Parameter

Implements

ParameterOrBuilder

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Parameter getDefaultInstance()
Returns
TypeDescription
Parameter

getDescriptor()

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

newBuilder()

public static Parameter.Builder newBuilder()
Returns
TypeDescription
Parameter.Builder

newBuilder(Parameter prototype)

public static Parameter.Builder newBuilder(Parameter prototype)
Parameter
NameDescription
prototypeParameter
Returns
TypeDescription
Parameter.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Parameter> parser()
Returns
TypeDescription
Parser<Parameter>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Parameter getDefaultInstanceForType()
Returns
TypeDescription
Parameter

getName()

public String getName()

Name of the parameter.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the parameter.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Parameter> getParserForType()
Returns
TypeDescription
Parser<Parameter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

public Parameter.Value getValue()

Value of parameter.

.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2;

Returns
TypeDescription
Parameter.Value

The value.

getValueOrBuilder()

public Parameter.ValueOrBuilder getValueOrBuilder()

Value of parameter.

.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2;

Returns
TypeDescription
Parameter.ValueOrBuilder

hasValue()

public boolean hasValue()

Value of parameter.

.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2;

Returns
TypeDescription
boolean

Whether the value field is set.

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 Parameter.Builder newBuilderForType()
Returns
TypeDescription
Parameter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Parameter.Builder toBuilder()
Returns
TypeDescription
Parameter.Builder

writeTo(CodedOutputStream output)

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