Class CreateNotificationChannelRequest (3.7.0)

public final class CreateNotificationChannelRequest extends GeneratedMessageV3 implements CreateNotificationChannelRequestOrBuilder

The CreateNotificationChannel request.

Protobuf type google.monitoring.v3.CreateNotificationChannelRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateNotificationChannelRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NOTIFICATION_CHANNEL_FIELD_NUMBER

public static final int NOTIFICATION_CHANNEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateNotificationChannelRequest getDefaultInstance()
Returns
TypeDescription
CreateNotificationChannelRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateNotificationChannelRequest.Builder newBuilder()
Returns
TypeDescription
CreateNotificationChannelRequest.Builder

newBuilder(CreateNotificationChannelRequest prototype)

public static CreateNotificationChannelRequest.Builder newBuilder(CreateNotificationChannelRequest prototype)
Parameter
NameDescription
prototypeCreateNotificationChannelRequest
Returns
TypeDescription
CreateNotificationChannelRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateNotificationChannelRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateNotificationChannelRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateNotificationChannelRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateNotificationChannelRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateNotificationChannelRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateNotificationChannelRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateNotificationChannelRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNotificationChannelRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateNotificationChannelRequest> parser()
Returns
TypeDescription
Parser<CreateNotificationChannelRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateNotificationChannelRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateNotificationChannelRequest

getName()

public String getName()

Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getNotificationChannel()

public NotificationChannel getNotificationChannel()

Required. The definition of the NotificationChannel to create.

.google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NotificationChannel

The notificationChannel.

getNotificationChannelOrBuilder()

public NotificationChannelOrBuilder getNotificationChannelOrBuilder()

Required. The definition of the NotificationChannel to create.

.google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NotificationChannelOrBuilder

getParserForType()

public Parser<CreateNotificationChannelRequest> getParserForType()
Returns
TypeDescription
Parser<CreateNotificationChannelRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasNotificationChannel()

public boolean hasNotificationChannel()

Required. The definition of the NotificationChannel to create.

.google.monitoring.v3.NotificationChannel notification_channel = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the notificationChannel field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateNotificationChannelRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateNotificationChannelRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateNotificationChannelRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateNotificationChannelRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateNotificationChannelRequest.Builder toBuilder()
Returns
TypeDescription
CreateNotificationChannelRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException