Class UpdateGroupRequest.Builder (3.54.0)

public static final class UpdateGroupRequest.Builder extends GeneratedMessageV3.Builder<UpdateGroupRequest.Builder> implements UpdateGroupRequestOrBuilder

The UpdateGroup request.

Protobuf type google.monitoring.v3.UpdateGroupRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateGroupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

build()

public UpdateGroupRequest build()
Returns
Type Description
UpdateGroupRequest

buildPartial()

public UpdateGroupRequest buildPartial()
Returns
Type Description
UpdateGroupRequest

clear()

public UpdateGroupRequest.Builder clear()
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateGroupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

clearGroup()

public UpdateGroupRequest.Builder clearGroup()

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateGroupRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

clearValidateOnly()

public UpdateGroupRequest.Builder clearValidateOnly()

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

bool validate_only = 3;

Returns
Type Description
UpdateGroupRequest.Builder

This builder for chaining.

clone()

public UpdateGroupRequest.Builder clone()
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateGroupRequest getDefaultInstanceForType()
Returns
Type Description
UpdateGroupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroup()

public Group getGroup()

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Group

The group.

getGroupBuilder()

public Group.Builder getGroupBuilder()

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Group.Builder

getGroupOrBuilder()

public GroupOrBuilder getGroupOrBuilder()

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GroupOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 3;

Returns
Type Description
boolean

The validateOnly.

hasGroup()

public boolean hasGroup()

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateGroupRequest other)

public UpdateGroupRequest.Builder mergeFrom(UpdateGroupRequest other)
Parameter
Name Description
other UpdateGroupRequest
Returns
Type Description
UpdateGroupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateGroupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGroupRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateGroupRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

mergeGroup(Group value)

public UpdateGroupRequest.Builder mergeGroup(Group value)

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Group
Returns
Type Description
UpdateGroupRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateGroupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateGroupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

setGroup(Group value)

public UpdateGroupRequest.Builder setGroup(Group value)

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Group
Returns
Type Description
UpdateGroupRequest.Builder

setGroup(Group.Builder builderForValue)

public UpdateGroupRequest.Builder setGroup(Group.Builder builderForValue)

Required. The new definition of the group. All fields of the existing group, excepting name, are replaced with the corresponding fields of this group.

.google.monitoring.v3.Group group = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Group.Builder
Returns
Type Description
UpdateGroupRequest.Builder

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

public UpdateGroupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateGroupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateGroupRequest.Builder
Overrides

setValidateOnly(boolean value)

public UpdateGroupRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 3;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateGroupRequest.Builder

This builder for chaining.