Class UpdateGroupRequest.Builder (3.10.0)

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

The UpdateGroup request.

Protobuf type google.monitoring.v3.UpdateGroupRequest

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateGroupRequest build()
Returns
TypeDescription
UpdateGroupRequest

buildPartial()

public UpdateGroupRequest buildPartial()
Returns
TypeDescription
UpdateGroupRequest

clear()

public UpdateGroupRequest.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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