public static final class CreateSnoozeRequest.Builder extends GeneratedMessageV3.Builder<CreateSnoozeRequest.Builder> 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSnoozeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateSnoozeRequest build()
Returns
buildPartial()
public CreateSnoozeRequest buildPartial()
Returns
clear()
public CreateSnoozeRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateSnoozeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSnoozeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateSnoozeRequest.Builder clearParent()
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
clearSnooze()
public CreateSnoozeRequest.Builder clearSnooze()
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
clone()
public CreateSnoozeRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateSnoozeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
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
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
Type | Description |
Snooze | The snooze.
|
getSnoozeBuilder()
public Snooze.Builder getSnoozeBuilder()
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
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
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
Type | Description |
boolean | Whether the snooze field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateSnoozeRequest other)
public CreateSnoozeRequest.Builder mergeFrom(CreateSnoozeRequest other)
Parameter
Returns
public CreateSnoozeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateSnoozeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSnooze(Snooze value)
public CreateSnoozeRequest.Builder mergeSnooze(Snooze value)
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];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSnoozeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSnoozeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateSnoozeRequest.Builder setParent(String value)
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) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateSnoozeRequest.Builder setParentBytes(ByteString value)
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) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSnoozeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSnooze(Snooze value)
public CreateSnoozeRequest.Builder setSnooze(Snooze value)
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];
Parameter
Returns
setSnooze(Snooze.Builder builderForValue)
public CreateSnoozeRequest.Builder setSnooze(Snooze.Builder builderForValue)
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];
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSnoozeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides