Class CreateMessageNotificationOptions (0.57.0)

public final class CreateMessageNotificationOptions extends GeneratedMessage implements CreateMessageNotificationOptionsOrBuilder

Options for the notification behavior when the message is posted.

Protobuf type google.chat.v1.CreateMessageNotificationOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CreateMessageNotificationOptions

Static Fields

NOTIFICATION_TYPE_FIELD_NUMBER

public static final int NOTIFICATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateMessageNotificationOptions getDefaultInstance()
Returns
Type Description
CreateMessageNotificationOptions

getDescriptor()

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

newBuilder()

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

newBuilder(CreateMessageNotificationOptions prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateMessageNotificationOptions getDefaultInstanceForType()
Returns
Type Description
CreateMessageNotificationOptions

getNotificationType()

public CreateMessageNotificationOptions.NotificationType getNotificationType()

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Returns
Type Description
CreateMessageNotificationOptions.NotificationType

The notificationType.

getNotificationTypeValue()

public int getNotificationTypeValue()

The notification type for the message.

.google.chat.v1.CreateMessageNotificationOptions.NotificationType notification_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for notificationType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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