Class SupportEventSubscription.Builder (0.78.0)

public static final class SupportEventSubscription.Builder extends GeneratedMessage.Builder<SupportEventSubscription.Builder> implements SupportEventSubscriptionOrBuilder

A support event subscription.

Protobuf type google.cloud.support.v2beta.SupportEventSubscription

Static Methods

getDescriptor()

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

Methods

build()

public SupportEventSubscription build()
Returns
Type Description
SupportEventSubscription

buildPartial()

public SupportEventSubscription buildPartial()
Returns
Type Description
SupportEventSubscription

clear()

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

clearCreateTime()

public SupportEventSubscription.Builder clearCreateTime()

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

clearDeleteTime()

public SupportEventSubscription.Builder clearDeleteTime()

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

clearFailureReason()

public SupportEventSubscription.Builder clearFailureReason()

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

.google.cloud.support.v2beta.SupportEventSubscription.FailureReason failure_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

clearName()

public SupportEventSubscription.Builder clearName()

Identifier. The resource name of the support event subscription.

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

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

clearPubSubTopic()

public SupportEventSubscription.Builder clearPubSubTopic()

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

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

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

clearPurgeTime()

public SupportEventSubscription.Builder clearPurgeTime()

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

clearState()

public SupportEventSubscription.Builder clearState()

Output only. The state of the subscription.

.google.cloud.support.v2beta.SupportEventSubscription.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

clearUpdateTime()

public SupportEventSubscription.Builder clearUpdateTime()

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.Builder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SupportEventSubscription getDefaultInstanceForType()
Returns
Type Description
SupportEventSubscription

getDeleteTime()

public Timestamp getDeleteTime()

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

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

getFailureReason()

public SupportEventSubscription.FailureReason getFailureReason()

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

.google.cloud.support.v2beta.SupportEventSubscription.FailureReason failure_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.FailureReason

The failureReason.

getFailureReasonValue()

public int getFailureReasonValue()

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

.google.cloud.support.v2beta.SupportEventSubscription.FailureReason failure_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for failureReason.

getName()

public String getName()

Identifier. The resource name of the support event subscription.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the support event subscription.

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

Returns
Type Description
ByteString

The bytes for name.

getPubSubTopic()

public String getPubSubTopic()

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

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

Returns
Type Description
String

The pubSubTopic.

getPubSubTopicBytes()

public ByteString getPubSubTopicBytes()

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

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

Returns
Type Description
ByteString

The bytes for pubSubTopic.

getPurgeTime()

public Timestamp getPurgeTime()

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The purgeTime.

getPurgeTimeBuilder()

public Timestamp.Builder getPurgeTimeBuilder()

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getPurgeTimeOrBuilder()

public TimestampOrBuilder getPurgeTimeOrBuilder()

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public SupportEventSubscription.State getState()

Output only. The state of the subscription.

.google.cloud.support.v2beta.SupportEventSubscription.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupportEventSubscription.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the subscription.

.google.cloud.support.v2beta.SupportEventSubscription.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasPurgeTime()

public boolean hasPurgeTime()

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the purgeTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public SupportEventSubscription.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

mergeDeleteTime(Timestamp value)

public SupportEventSubscription.Builder mergeDeleteTime(Timestamp value)

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

mergeFrom(SupportEventSubscription other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePurgeTime(Timestamp value)

public SupportEventSubscription.Builder mergePurgeTime(Timestamp value)

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

mergeUpdateTime(Timestamp value)

public SupportEventSubscription.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

setCreateTime(Timestamp value)

public SupportEventSubscription.Builder setCreateTime(Timestamp value)

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SupportEventSubscription.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the subscription was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SupportEventSubscription.Builder

setDeleteTime(Timestamp value)

public SupportEventSubscription.Builder setDeleteTime(Timestamp value)

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public SupportEventSubscription.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. The time at which the subscription was deleted.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SupportEventSubscription.Builder

setFailureReason(SupportEventSubscription.FailureReason value)

public SupportEventSubscription.Builder setFailureReason(SupportEventSubscription.FailureReason value)

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

.google.cloud.support.v2beta.SupportEventSubscription.FailureReason failure_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SupportEventSubscription.FailureReason

The failureReason to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setFailureReasonValue(int value)

public SupportEventSubscription.Builder setFailureReasonValue(int value)

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

.google.cloud.support.v2beta.SupportEventSubscription.FailureReason failure_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for failureReason to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setName(String value)

public SupportEventSubscription.Builder setName(String value)

Identifier. The resource name of the support event subscription.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SupportEventSubscription.Builder setNameBytes(ByteString value)

Identifier. The resource name of the support event subscription.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setPubSubTopic(String value)

public SupportEventSubscription.Builder setPubSubTopic(String value)

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

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

Parameter
Name Description
value String

The pubSubTopic to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setPubSubTopicBytes(ByteString value)

public SupportEventSubscription.Builder setPubSubTopicBytes(ByteString value)

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

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

Parameter
Name Description
value ByteString

The bytes for pubSubTopic to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setPurgeTime(Timestamp value)

public SupportEventSubscription.Builder setPurgeTime(Timestamp value)

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

setPurgeTime(Timestamp.Builder builderForValue)

public SupportEventSubscription.Builder setPurgeTime(Timestamp.Builder builderForValue)

Output only. The time at which the subscription will be purged.

.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SupportEventSubscription.Builder

setState(SupportEventSubscription.State value)

public SupportEventSubscription.Builder setState(SupportEventSubscription.State value)

Output only. The state of the subscription.

.google.cloud.support.v2beta.SupportEventSubscription.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SupportEventSubscription.State

The state to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setStateValue(int value)

public SupportEventSubscription.Builder setStateValue(int value)

Output only. The state of the subscription.

.google.cloud.support.v2beta.SupportEventSubscription.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
SupportEventSubscription.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public SupportEventSubscription.Builder setUpdateTime(Timestamp value)

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SupportEventSubscription.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SupportEventSubscription.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which the subscription was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SupportEventSubscription.Builder