Class CurrencyConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
- com.google.ads.googleads.v14.resources.CurrencyConstant.Builder
-
- All Implemented Interfaces:
CurrencyConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CurrencyConstant
public static final class CurrencyConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder> implements CurrencyConstantOrBuilder
A currency constant.
Protobuf typegoogle.ads.googleads.v14.resources.CurrencyConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyConstant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CurrencyConstantbuild()CurrencyConstantbuildPartial()CurrencyConstant.Builderclear()CurrencyConstant.BuilderclearBillableUnitMicros()Output only.CurrencyConstant.BuilderclearCode()Output only.CurrencyConstant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CurrencyConstant.BuilderclearName()Output only.CurrencyConstant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CurrencyConstant.BuilderclearResourceName()Output only.CurrencyConstant.BuilderclearSymbol()Output only.CurrencyConstant.Builderclone()longgetBillableUnitMicros()Output only.java.lang.StringgetCode()Output only.com.google.protobuf.ByteStringgetCodeBytes()Output only.CurrencyConstantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.java.lang.StringgetSymbol()Output only.com.google.protobuf.ByteStringgetSymbolBytes()Output only.booleanhasBillableUnitMicros()Output only.booleanhasCode()Output only.booleanhasName()Output only.booleanhasSymbol()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CurrencyConstant.BuildermergeFrom(CurrencyConstant other)CurrencyConstant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CurrencyConstant.BuildermergeFrom(com.google.protobuf.Message other)CurrencyConstant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CurrencyConstant.BuildersetBillableUnitMicros(long value)Output only.CurrencyConstant.BuildersetCode(java.lang.String value)Output only.CurrencyConstant.BuildersetCodeBytes(com.google.protobuf.ByteString value)Output only.CurrencyConstant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CurrencyConstant.BuildersetName(java.lang.String value)Output only.CurrencyConstant.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.CurrencyConstant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CurrencyConstant.BuildersetResourceName(java.lang.String value)Output only.CurrencyConstant.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Output only.CurrencyConstant.BuildersetSymbol(java.lang.String value)Output only.CurrencyConstant.BuildersetSymbolBytes(com.google.protobuf.ByteString value)Output only.CurrencyConstant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
clear
public CurrencyConstant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
getDefaultInstanceForType
public CurrencyConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CurrencyConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CurrencyConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CurrencyConstant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
setField
public CurrencyConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
clearField
public CurrencyConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
clearOneof
public CurrencyConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
setRepeatedField
public CurrencyConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
addRepeatedField
public CurrencyConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
mergeFrom
public CurrencyConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CurrencyConstant.Builder>
-
mergeFrom
public CurrencyConstant.Builder mergeFrom(CurrencyConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
mergeFrom
public CurrencyConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CurrencyConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the currency constant. Currency constant resource names have the form: `currencyConstants/{code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCurrencyConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the currency constant. Currency constant resource names have the form: `currencyConstants/{code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCurrencyConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public CurrencyConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the currency constant. Currency constant resource names have the form: `currencyConstants/{code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public CurrencyConstant.Builder clearResourceName()
Output only. The resource name of the currency constant. Currency constant resource names have the form: `currencyConstants/{code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CurrencyConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the currency constant. Currency constant resource names have the form: `currencyConstants/{code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasCode
public boolean hasCode()
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCodein interfaceCurrencyConstantOrBuilder- Returns:
- Whether the code field is set.
-
getCode
public java.lang.String getCode()
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodein interfaceCurrencyConstantOrBuilder- Returns:
- The code.
-
getCodeBytes
public com.google.protobuf.ByteString getCodeBytes()
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodeBytesin interfaceCurrencyConstantOrBuilder- Returns:
- The bytes for code.
-
setCode
public CurrencyConstant.Builder setCode(java.lang.String value)
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public CurrencyConstant.Builder clearCode()
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCodeBytes
public CurrencyConstant.Builder setCodeBytes(com.google.protobuf.ByteString value)
Output only. ISO 4217 three-letter currency code, for example, "USD"
optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for code to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceCurrencyConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceCurrencyConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceCurrencyConstantOrBuilder- Returns:
- The bytes for name.
-
setName
public CurrencyConstant.Builder setName(java.lang.String value)
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CurrencyConstant.Builder clearName()
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public CurrencyConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Full English name of the currency.
optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSymbol
public boolean hasSymbol()
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSymbolin interfaceCurrencyConstantOrBuilder- Returns:
- Whether the symbol field is set.
-
getSymbol
public java.lang.String getSymbol()
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymbolin interfaceCurrencyConstantOrBuilder- Returns:
- The symbol.
-
getSymbolBytes
public com.google.protobuf.ByteString getSymbolBytes()
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymbolBytesin interfaceCurrencyConstantOrBuilder- Returns:
- The bytes for symbol.
-
setSymbol
public CurrencyConstant.Builder setSymbol(java.lang.String value)
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The symbol to set.- Returns:
- This builder for chaining.
-
clearSymbol
public CurrencyConstant.Builder clearSymbol()
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setSymbolBytes
public CurrencyConstant.Builder setSymbolBytes(com.google.protobuf.ByteString value)
Output only. Standard symbol for describing this currency, for example, '$' for US Dollars.
optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for symbol to set.- Returns:
- This builder for chaining.
-
hasBillableUnitMicros
public boolean hasBillableUnitMicros()
Output only. The billable unit for this currency. Billed amounts should be multiples of this value.
optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasBillableUnitMicrosin interfaceCurrencyConstantOrBuilder- Returns:
- Whether the billableUnitMicros field is set.
-
getBillableUnitMicros
public long getBillableUnitMicros()
Output only. The billable unit for this currency. Billed amounts should be multiples of this value.
optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBillableUnitMicrosin interfaceCurrencyConstantOrBuilder- Returns:
- The billableUnitMicros.
-
setBillableUnitMicros
public CurrencyConstant.Builder setBillableUnitMicros(long value)
Output only. The billable unit for this currency. Billed amounts should be multiples of this value.
optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The billableUnitMicros to set.- Returns:
- This builder for chaining.
-
clearBillableUnitMicros
public CurrencyConstant.Builder clearBillableUnitMicros()
Output only. The billable unit for this currency. Billed amounts should be multiples of this value.
optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final CurrencyConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
mergeUnknownFields
public final CurrencyConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
-
-