Class TypedPayload.Builder (0.19.0)

public static final class TypedPayload.Builder extends GeneratedMessage.Builder<TypedPayload.Builder> implements TypedPayloadOrBuilder

Payload with a type.

Protobuf type google.cloud.ces.v1beta.TypedPayload

Static Methods

getDescriptor()

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

Methods

build()

public TypedPayload build()
Returns
Type Description
TypedPayload

buildPartial()

public TypedPayload buildPartial()
Returns
Type Description
TypedPayload

clear()

public TypedPayload.Builder clear()
Returns
Type Description
TypedPayload.Builder
Overrides

clearDisplayName()

public TypedPayload.Builder clearDisplayName()

Required. The display name of the payload.

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

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

clearMetadata()

public TypedPayload.Builder clearMetadata()

Optional. The metadata of the payload.

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

Returns
Type Description
TypedPayload.Builder

clearType()

public TypedPayload.Builder clearType()

Required. The type of the payload.

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

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

clearValue()

public TypedPayload.Builder clearValue()

Required. The value of the payload.

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

Returns
Type Description
TypedPayload.Builder

getDefaultInstanceForType()

public TypedPayload getDefaultInstanceForType()
Returns
Type Description
TypedPayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getMetadataBuilder()

public Struct.Builder getMetadataBuilder()

Optional. The metadata of the payload.

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

Returns
Type Description
Builder

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Optional. The metadata of the payload.

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

Returns
Type Description
StructOrBuilder

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.

getValueBuilder()

public Struct.Builder getValueBuilder()

Required. The value of the payload.

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

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TypedPayload other)

public TypedPayload.Builder mergeFrom(TypedPayload other)
Parameter
Name Description
other TypedPayload
Returns
Type Description
TypedPayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TypedPayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypedPayload.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TypedPayload.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TypedPayload.Builder
Overrides

mergeMetadata(Struct value)

public TypedPayload.Builder mergeMetadata(Struct value)

Optional. The metadata of the payload.

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

Parameter
Name Description
value Struct
Returns
Type Description
TypedPayload.Builder

mergeValue(Struct value)

public TypedPayload.Builder mergeValue(Struct value)

Required. The value of the payload.

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

Parameter
Name Description
value Struct
Returns
Type Description
TypedPayload.Builder

setDisplayName(String value)

public TypedPayload.Builder setDisplayName(String value)

Required. The display name of the payload.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public TypedPayload.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the payload.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

setMetadata(Struct value)

public TypedPayload.Builder setMetadata(Struct value)

Optional. The metadata of the payload.

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

Parameter
Name Description
value Struct
Returns
Type Description
TypedPayload.Builder

setMetadata(Struct.Builder builderForValue)

public TypedPayload.Builder setMetadata(Struct.Builder builderForValue)

Optional. The metadata of the payload.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TypedPayload.Builder

setType(String value)

public TypedPayload.Builder setType(String value)

Required. The type of the payload.

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public TypedPayload.Builder setTypeBytes(ByteString value)

Required. The type of the payload.

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
TypedPayload.Builder

This builder for chaining.

setValue(Struct value)

public TypedPayload.Builder setValue(Struct value)

Required. The value of the payload.

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

Parameter
Name Description
value Struct
Returns
Type Description
TypedPayload.Builder

setValue(Struct.Builder builderForValue)

public TypedPayload.Builder setValue(Struct.Builder builderForValue)

Required. The value of the payload.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TypedPayload.Builder