Class Value.Builder (0.1.0)
public static final class Value.Builder extends GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
Protobuf type google.cloud.capacityplanner.v1beta.Value
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
| Returns |
| Type |
Description |
Value |
|
buildPartial()
public Value buildPartial()
| Returns |
| Type |
Description |
Value |
|
clear()
public Value.Builder clear()
Overrides
clearBoolValue()
public Value.Builder clearBoolValue()
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
clearDoubleValue()
public Value.Builder clearDoubleValue()
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
clearField(Descriptors.FieldDescriptor field)
public Value.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInt64Value()
public Value.Builder clearInt64Value()
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStringValue()
public Value.Builder clearStringValue()
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
clearValue()
public Value.Builder clearValue()
clone()
public Value.Builder clone()
Overrides
getBoolValue()
public boolean getBoolValue()
| Returns |
| Type |
Description |
boolean |
The boolValue.
|
getDefaultInstanceForType()
public Value getDefaultInstanceForType()
| Returns |
| Type |
Description |
Value |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDoubleValue()
public double getDoubleValue()
| Returns |
| Type |
Description |
double |
The doubleValue.
|
getInt64Value()
public long getInt64Value()
| Returns |
| Type |
Description |
long |
The int64Value.
|
getStringValue()
public String getStringValue()
| Returns |
| Type |
Description |
String |
The stringValue.
|
getStringValueBytes()
public ByteString getStringValueBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for stringValue.
|
getValueCase()
public Value.ValueCase getValueCase()
hasBoolValue()
public boolean hasBoolValue()
| Returns |
| Type |
Description |
boolean |
Whether the boolValue field is set.
|
hasDoubleValue()
public boolean hasDoubleValue()
| Returns |
| Type |
Description |
boolean |
Whether the doubleValue field is set.
|
hasInt64Value()
public boolean hasInt64Value()
| Returns |
| Type |
Description |
boolean |
Whether the int64Value field is set.
|
hasStringValue()
public boolean hasStringValue()
| Returns |
| Type |
Description |
boolean |
Whether the stringValue field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Value other)
public Value.Builder mergeFrom(Value other)
| Parameter |
| Name |
Description |
other |
Value
|
public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Value.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBoolValue(boolean value)
public Value.Builder setBoolValue(boolean value)
| Parameter |
| Name |
Description |
value |
boolean
The boolValue to set.
|
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
setDoubleValue(double value)
public Value.Builder setDoubleValue(double value)
| Parameter |
| Name |
Description |
value |
double
The doubleValue to set.
|
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Value.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInt64Value(long value)
public Value.Builder setInt64Value(long value)
| Parameter |
| Name |
Description |
value |
long
The int64Value to set.
|
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStringValue(String value)
public Value.Builder setStringValue(String value)
| Parameter |
| Name |
Description |
value |
String
The stringValue to set.
|
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
setStringValueBytes(ByteString value)
public Value.Builder setStringValueBytes(ByteString value)
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for stringValue to set.
|
| Returns |
| Type |
Description |
Value.Builder |
This builder for chaining.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]