Class UpdateCaseRequest.Builder (0.36.0)

public static final class UpdateCaseRequest.Builder extends GeneratedMessageV3.Builder<UpdateCaseRequest.Builder> implements UpdateCaseRequestOrBuilder

The request message for the UpdateCase endpoint

Protobuf type google.cloud.support.v2.UpdateCaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCaseRequest build()
Returns
Type Description
UpdateCaseRequest

buildPartial()

public UpdateCaseRequest buildPartial()
Returns
Type Description
UpdateCaseRequest

clear()

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

clearCase()

public UpdateCaseRequest.Builder clearCase()

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCaseRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCaseRequest.Builder clearUpdateMask()

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateCaseRequest.Builder

clone()

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

getCase()

public Case getCase()

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Case

The case.

getCaseBuilder()

public Case.Builder getCaseBuilder()

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Case.Builder

getCaseOrBuilder()

public CaseOrBuilder getCaseOrBuilder()

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CaseOrBuilder

getDefaultInstanceForType()

public UpdateCaseRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCaseRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasCase()

public boolean hasCase()

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the case field is set.

hasUpdateMask()

public boolean hasUpdateMask()

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCase(Case value)

public UpdateCaseRequest.Builder mergeCase(Case value)

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Case
Returns
Type Description
UpdateCaseRequest.Builder

mergeFrom(UpdateCaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateCaseRequest.Builder mergeUpdateMask(FieldMask value)

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCaseRequest.Builder

setCase(Case value)

public UpdateCaseRequest.Builder setCase(Case value)

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Case
Returns
Type Description
UpdateCaseRequest.Builder

setCase(Case.Builder builderForValue)

public UpdateCaseRequest.Builder setCase(Case.Builder builderForValue)

Required. The case object to update.

.google.cloud.support.v2.Case case = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Case.Builder
Returns
Type Description
UpdateCaseRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCaseRequest.Builder setUpdateMask(FieldMask value)

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCaseRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCaseRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

A list of attributes of the case object that should be updated as part of this request. Supported values are priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.

WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCaseRequest.Builder