public final class Subscription extends GeneratedMessageV3 implements SubscriptionOrBuilder
A subscription allows users to get notifications about changes to an incident.Protobuf type
google.cloud.irm.v1alpha2.Subscription| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.Builder
A subscription allows users to get notifications about changes to
an incident.
|
static class |
Subscription.EventType
Types of changes that users can subscribe to in an incident.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
ETAG_FIELD_NUMBER |
static int |
EVENT_TYPES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SUBSCRIPTION_CHANNEL_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int SUBSCRIPTION_CHANNEL_FIELD_NUMBER
public static final int EVENT_TYPES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public String getName()
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
string name = 1;getName in interface SubscriptionOrBuilderpublic ByteString getNameBytes()
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
string name = 1;getNameBytes in interface SubscriptionOrBuilderpublic String getEtag()
Output only. Etag for this version of the resource. Must be specified in update requests and match the current version in storage. Must not be modified by the client.
string etag = 2;getEtag in interface SubscriptionOrBuilderpublic ByteString getEtagBytes()
Output only. Etag for this version of the resource. Must be specified in update requests and match the current version in storage. Must not be modified by the client.
string etag = 2;getEtagBytes in interface SubscriptionOrBuilderpublic boolean hasSubscriptionChannel()
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;hasSubscriptionChannel in interface SubscriptionOrBuilderpublic CommunicationChannel getSubscriptionChannel()
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;getSubscriptionChannel in interface SubscriptionOrBuilderpublic CommunicationChannelOrBuilder getSubscriptionChannelOrBuilder()
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;getSubscriptionChannelOrBuilder in interface SubscriptionOrBuilderpublic List<Subscription.EventType> getEventTypesList()
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;getEventTypesList in interface SubscriptionOrBuilderpublic int getEventTypesCount()
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;getEventTypesCount in interface SubscriptionOrBuilderpublic Subscription.EventType getEventTypes(int index)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;getEventTypes in interface SubscriptionOrBuilderindex - The index of the element to return.public List<Integer> getEventTypesValueList()
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;getEventTypesValueList in interface SubscriptionOrBuilderpublic int getEventTypesValue(int index)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;getEventTypesValue in interface SubscriptionOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Subscription parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Subscription parseFrom(InputStream input) throws IOException
IOExceptionpublic static Subscription parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Subscription parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Subscription parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Subscription parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Subscription parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Subscription.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Subscription.Builder newBuilder()
public static Subscription.Builder newBuilder(Subscription prototype)
public Subscription.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Subscription.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Subscription getDefaultInstance()
public static Parser<Subscription> parser()
public Parser<Subscription> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Subscription getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.