Class UpdateGroupRequest.Builder (3.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateGroupRequest build()
Returns
TypeDescription
UpdateGroupRequest

buildPartial()

public UpdateGroupRequest buildPartial()
Returns
TypeDescription
UpdateGroupRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateGroupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateGroupRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateGroupRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateGroupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GroupOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 3;

Returns
TypeDescription
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
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(UpdateGroupRequest other)

public UpdateGroupRequest.Builder mergeFrom(UpdateGroupRequest other)
Parameter
NameDescription
otherUpdateGroupRequest
Returns
TypeDescription
UpdateGroupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
UpdateGroupRequest.Builder

This builder for chaining.