Class MeasurementProtocolSecret (0.22.0)

public final class MeasurementProtocolSecret extends GeneratedMessageV3 implements MeasurementProtocolSecretOrBuilder

A secret value used for sending hits to Measurement Protocol.

Protobuf type google.analytics.admin.v1beta.MeasurementProtocolSecret

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SECRET_VALUE_FIELD_NUMBER

public static final int SECRET_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MeasurementProtocolSecret getDefaultInstance()
Returns
TypeDescription
MeasurementProtocolSecret

getDescriptor()

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

newBuilder()

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

newBuilder(MeasurementProtocolSecret prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MeasurementProtocolSecret getDefaultInstanceForType()
Returns
TypeDescription
MeasurementProtocolSecret

getDisplayName()

public String getDisplayName()

Required. Human-readable display name for this secret.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Human-readable display name for this secret.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSecretValue()

public String getSecretValue()

Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.

string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The secretValue.

getSecretValueBytes()

public ByteString getSecretValueBytes()

Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.

string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for secretValue.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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