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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSnoozeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateSnoozeRequest build()
buildPartial()
public CreateSnoozeRequest buildPartial()
clear()
public CreateSnoozeRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateSnoozeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSnoozeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
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];
clone()
public CreateSnoozeRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateSnoozeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateSnoozeRequest other)
public CreateSnoozeRequest.Builder mergeFrom(CreateSnoozeRequest other)
public CreateSnoozeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateSnoozeRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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 |
---|
Name | Description |
value | Snooze
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSnoozeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSnoozeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSnoozeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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 |
---|
Name | Description |
value | Snooze
|
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSnoozeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides