Class TypedPayload (0.19.0)

public final class TypedPayload extends GeneratedMessage implements TypedPayloadOrBuilder

Payload with a type.

Protobuf type google.cloud.ces.v1beta.TypedPayload

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TypedPayload getDefaultInstance()
Returns
Type Description
TypedPayload

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TypedPayload.Builder newBuilder()
Returns
Type Description
TypedPayload.Builder

newBuilder(TypedPayload prototype)

public static TypedPayload.Builder newBuilder(TypedPayload prototype)
Parameter
Name Description
prototype TypedPayload
Returns
Type Description
TypedPayload.Builder

parseDelimitedFrom(InputStream input)

public static TypedPayload parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TypedPayload parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TypedPayload parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TypedPayload parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TypedPayload parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TypedPayload parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TypedPayload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TypedPayload> parser()
Returns
Type Description
Parser<TypedPayload>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TypedPayload getDefaultInstanceForType()
Returns
Type Description
TypedPayload

getDisplayName()

public String getDisplayName()

Required. The display name of the payload.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the payload.

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

Returns
Type Description
ByteString

The bytes for displayName.

getMetadata()

public Struct getMetadata()

Optional. The metadata of the payload.

.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The metadata.

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Optional. The metadata of the payload.

.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getParserForType()

public Parser<TypedPayload> getParserForType()
Returns
Type Description
Parser<TypedPayload>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public String getType()

Required. The type of the payload.

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. The type of the payload.

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

Returns
Type Description
ByteString

The bytes for type.

getValue()

public Struct getValue()

Required. The value of the payload.

.google.protobuf.Struct value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Struct

The value.

getValueOrBuilder()

public StructOrBuilder getValueOrBuilder()

Required. The value of the payload.

.google.protobuf.Struct value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StructOrBuilder

hasMetadata()

public boolean hasMetadata()

Optional. The metadata of the payload.

.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the metadata field is set.

hasValue()

public boolean hasValue()

Required. The value of the payload.

.google.protobuf.Struct value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the value field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TypedPayload.Builder newBuilderForType()
Returns
Type Description
TypedPayload.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected TypedPayload.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TypedPayload.Builder
Overrides

toBuilder()

public TypedPayload.Builder toBuilder()
Returns
Type Description
TypedPayload.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException