public static final class Subscription.Builder extends GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder
A subscription allows users to get notifications about changes to an incident.Protobuf type
google.cloud.irm.v1alpha2.SubscriptiongetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Subscription.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Subscription build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Subscription buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Subscription.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(Subscription other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Subscription.Builder>IOExceptionpublic 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 Subscription.Builder setName(String value)
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
string name = 1;value - The name to set.public Subscription.Builder clearName()
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
string name = 1;public Subscription.Builder setNameBytes(ByteString value)
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
string name = 1;value - The bytes for name to set.public 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 Subscription.Builder setEtag(String value)
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;value - The etag to set.public Subscription.Builder clearEtag()
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;public Subscription.Builder setEtagBytes(ByteString value)
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;value - The bytes for etag to set.public 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 Subscription.Builder setSubscriptionChannel(CommunicationChannel value)
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;public Subscription.Builder setSubscriptionChannel(CommunicationChannel.Builder builderForValue)
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;public Subscription.Builder mergeSubscriptionChannel(CommunicationChannel value)
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;public Subscription.Builder clearSubscriptionChannel()
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;public CommunicationChannel.Builder getSubscriptionChannelBuilder()
A communications channel to send subscription messages to.
.google.cloud.irm.v1alpha2.CommunicationChannel subscription_channel = 3;public 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 Subscription.Builder setEventTypes(int index, Subscription.EventType value)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;index - The index to set the value at.value - The eventTypes to set.public Subscription.Builder addEventTypes(Subscription.EventType value)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;value - The eventTypes to add.public Subscription.Builder addAllEventTypes(Iterable<? extends Subscription.EventType> values)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;values - The eventTypes to add.public Subscription.Builder clearEventTypes()
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;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 Subscription.Builder setEventTypesValue(int index, int value)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;index - The index of the value to return.public Subscription.Builder addEventTypesValue(int value)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;value - The enum numeric value on the wire for eventTypes to add.public Subscription.Builder addAllEventTypesValue(Iterable<Integer> values)
Types of events this subscription receives notifications for.
repeated .google.cloud.irm.v1alpha2.Subscription.EventType event_types = 4;values - The enum numeric values on the wire for eventTypes to add.public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Subscription.Builder>public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Subscription.Builder>Copyright © 2020 Google LLC. All rights reserved.