Class CreateGroupRequest.Builder (3.4.0)

public static final class CreateGroupRequest.Builder extends GeneratedMessageV3.Builder<CreateGroupRequest.Builder> implements CreateGroupRequestOrBuilder

The CreateGroup request.

Protobuf type google.monitoring.v3.CreateGroupRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateGroupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

build()

public CreateGroupRequest build()
Returns
TypeDescription
CreateGroupRequest

buildPartial()

public CreateGroupRequest buildPartial()
Returns
TypeDescription
CreateGroupRequest

clear()

public CreateGroupRequest.Builder clear()
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateGroupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateGroupRequest.Builder
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
TypeDescription
CreateGroupRequest.Builder

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
TypeDescription
CreateGroupRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

clearValidateOnly()

public CreateGroupRequest.Builder clearValidateOnly()

If true, validate this request but do not create the group.

bool validate_only = 3;

Returns
TypeDescription
CreateGroupRequest.Builder

This builder for chaining.

clone()

public CreateGroupRequest.Builder clone()
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateGroupRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateGroupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroup()

public Group 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
TypeDescription
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
TypeDescription
Group.Builder

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
TypeDescription
GroupOrBuilder

getName()

public String 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the group field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateGroupRequest other)

public CreateGroupRequest.Builder mergeFrom(CreateGroupRequest other)
Parameter
NameDescription
otherCreateGroupRequest
Returns
TypeDescription
CreateGroupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateGroupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateGroupRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateGroupRequest.Builder
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
NameDescription
valueGroup
Returns
TypeDescription
CreateGroupRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateGroupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateGroupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateGroupRequest.Builder
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
NameDescription
valueGroup
Returns
TypeDescription
CreateGroupRequest.Builder

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
NameDescription
builderForValueGroup.Builder
Returns
TypeDescription
CreateGroupRequest.Builder

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
NameDescription
valueString

The name to set.

Returns
TypeDescription
CreateGroupRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CreateGroupRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateGroupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateGroupRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateGroupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateGroupRequest.Builder
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateGroupRequest.Builder

This builder for chaining.