public static final class CreateGroupRequest.Builder extends GeneratedMessageV3.Builder<CreateGroupRequest.Builder> implements CreateGroupRequestOrBuilder
The CreateGroup
request.
Protobuf type google.monitoring.v3.CreateGroupRequest
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 CreateGroupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateGroupRequest build()
Returns
buildPartial()
public CreateGroupRequest buildPartial()
Returns
clear()
public CreateGroupRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateGroupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGroup()
public CreateGroupRequest.Builder clearGroup()
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearName()
public CreateGroupRequest.Builder clearName()
Required. The project in
which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearValidateOnly()
public CreateGroupRequest.Builder clearValidateOnly()
If true, validate this request but do not create the group.
bool validate_only = 3;
Returns
clone()
public CreateGroupRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateGroupRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGroup()
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
Group | The group.
|
getGroupBuilder()
public Group.Builder getGroupBuilder()
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getGroupOrBuilder()
public GroupOrBuilder getGroupOrBuilder()
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getName()
Required. The project in
which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The project in
which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getValidateOnly()
public boolean getValidateOnly()
If true, validate this request but do not create the group.
bool validate_only = 3;
Returns
Type | Description |
boolean | The validateOnly.
|
hasGroup()
public boolean hasGroup()
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the group field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateGroupRequest other)
public CreateGroupRequest.Builder mergeFrom(CreateGroupRequest other)
Parameter
Returns
public CreateGroupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateGroupRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeGroup(Group value)
public CreateGroupRequest.Builder mergeGroup(Group value)
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | Group
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateGroupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateGroupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGroup(Group value)
public CreateGroupRequest.Builder setGroup(Group value)
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | Group
|
Returns
setGroup(Group.Builder builderForValue)
public CreateGroupRequest.Builder setGroup(Group.Builder builderForValue)
Required. A group definition. It is an error to define the name
field because
the system assigns the name.
.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setName(String value)
public CreateGroupRequest.Builder setName(String value)
Required. The project in
which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public CreateGroupRequest.Builder setNameBytes(ByteString value)
Required. The project in
which to create the group. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateGroupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateGroupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setValidateOnly(boolean value)
public CreateGroupRequest.Builder setValidateOnly(boolean value)
If true, validate this request but do not create the group.
bool validate_only = 3;
Parameter
Name | Description |
value | boolean
The validateOnly to set.
|
Returns