Class SupportEventSubscription (0.78.0)

public final class SupportEventSubscription extends GeneratedMessage implements SupportEventSubscriptionOrBuilder

A support event subscription.

Protobuf type google.cloud.support.v2beta.SupportEventSubscription

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DELETE_TIME_FIELD_NUMBER

public static final int DELETE_TIME_FIELD_NUMBER
Field Value
Type Description
int

FAILURE_REASON_FIELD_NUMBER

public static final int FAILURE_REASON_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PUB_SUB_TOPIC_FIELD_NUMBER

public static final int PUB_SUB_TOPIC_FIELD_NUMBER
Field Value
Type Description
int

PURGE_TIME_FIELD_NUMBER

public static final int PURGE_TIME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SupportEventSubscription getDefaultInstance()
Returns
Type Description
SupportEventSubscription

getDescriptor()

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

newBuilder()

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

newBuilder(SupportEventSubscription prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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.

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

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.

getParserForType()

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

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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 SupportEventSubscription.Builder newBuilderForType()
Returns
Type Description
SupportEventSubscription.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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