Class CreateSnoozeRequest (3.40.0)

public final class CreateSnoozeRequest extends GeneratedMessageV3 implements CreateSnoozeRequestOrBuilder

The message definition for creating a Snooze. Users must provide the body of the Snooze to be created but must omit the Snooze field, name.

Protobuf type google.monitoring.v3.CreateSnoozeRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

SNOOZE_FIELD_NUMBER

public static final int SNOOZE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateSnoozeRequest getDefaultInstance()
Returns
TypeDescription
CreateSnoozeRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateSnoozeRequest prototype)

public static CreateSnoozeRequest.Builder newBuilder(CreateSnoozeRequest prototype)
Parameter
NameDescription
prototypeCreateSnoozeRequest
Returns
TypeDescription
CreateSnoozeRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateSnoozeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSnoozeRequest

getParent()

public String getParent()

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSnooze()

public Snooze getSnooze()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Snooze

The snooze.

getSnoozeOrBuilder()

public SnoozeOrBuilder getSnoozeOrBuilder()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnoozeOrBuilder

hasSnooze()

public boolean hasSnooze()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the snooze 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 CreateSnoozeRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateSnoozeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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