Class KeyEvent.DefaultValue (0.70.0)

publicstaticfinalclassKeyEvent.DefaultValueextendsGeneratedMessageV3implementsKeyEvent.DefaultValueOrBuilder

Defines a default value/currency for a key event.

Protobuf type google.analytics.admin.v1alpha.KeyEvent.DefaultValue

Static Fields

CURRENCY_CODE_FIELD_NUMBER

publicstaticfinalintCURRENCY_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

NUMERIC_VALUE_FIELD_NUMBER

publicstaticfinalintNUMERIC_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticKeyEvent.DefaultValuegetDefaultInstance()
Returns
TypeDescription
KeyEvent.DefaultValue

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticKeyEvent.DefaultValue.BuildernewBuilder()
Returns
TypeDescription
KeyEvent.DefaultValue.Builder

newBuilder(KeyEvent.DefaultValue prototype)

publicstaticKeyEvent.DefaultValue.BuildernewBuilder(KeyEvent.DefaultValueprototype)
Parameter
NameDescription
prototypeKeyEvent.DefaultValue
Returns
TypeDescription
KeyEvent.DefaultValue.Builder

parseDelimitedFrom(InputStream input)

publicstaticKeyEvent.DefaultValueparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticKeyEvent.DefaultValueparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticKeyEvent.DefaultValueparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticKeyEvent.DefaultValueparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticKeyEvent.DefaultValueparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticKeyEvent.DefaultValueparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticKeyEvent.DefaultValueparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyEvent.DefaultValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<KeyEvent.DefaultValue>parser()
Returns
TypeDescription
Parser<DefaultValue>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCurrencyCode()

publicStringgetCurrencyCode()

Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format.

See https://en.wikipedia.org/wiki/ISO_4217 for more information.

string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The currencyCode.

getCurrencyCodeBytes()

publicByteStringgetCurrencyCodeBytes()

Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format.

See https://en.wikipedia.org/wiki/ISO_4217 for more information.

string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

publicKeyEvent.DefaultValuegetDefaultInstanceForType()
Returns
TypeDescription
KeyEvent.DefaultValue

getNumericValue()

publicdoublegetNumericValue()

Required. This will be used to populate the "value" parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset.

double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
double

The numericValue.

getParserForType()

publicParser<KeyEvent.DefaultValue>getParserForType()
Returns
TypeDescription
Parser<DefaultValue>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicKeyEvent.DefaultValue.BuildernewBuilderForType()
Returns
TypeDescription
KeyEvent.DefaultValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedKeyEvent.DefaultValue.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
KeyEvent.DefaultValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicKeyEvent.DefaultValue.BuildertoBuilder()
Returns
TypeDescription
KeyEvent.DefaultValue.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException