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.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 CreateGroupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateGroupRequest build()
buildPartial()
public CreateGroupRequest buildPartial()
clear()
public CreateGroupRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateGroupRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearValidateOnly()
public CreateGroupRequest.Builder clearValidateOnly()
If true, validate this request but do not create the group.
bool validate_only = 3;
clone()
public CreateGroupRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateGroupRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateGroupRequest other)
public CreateGroupRequest.Builder mergeFrom(CreateGroupRequest other)
public CreateGroupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateGroupRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateGroupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateGroupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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];
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateGroupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateGroupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|