Class UpdateCaseRequest.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCaseRequest build()
Returns
TypeDescription
UpdateCaseRequest

buildPartial()

public UpdateCaseRequest buildPartial()
Returns
TypeDescription
UpdateCaseRequest

clear()

public UpdateCaseRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateCaseRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateCaseRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UpdateCaseRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CaseOrBuilder

getDefaultInstanceForType()

public UpdateCaseRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCaseRequest

getDescriptorForType()

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

hasCase()

public boolean hasCase()

Required. The case object to update.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCase
Returns
TypeDescription
UpdateCaseRequest.Builder

mergeFrom(UpdateCaseRequest other)

public UpdateCaseRequest.Builder mergeFrom(UpdateCaseRequest other)
Parameter
NameDescription
otherUpdateCaseRequest
Returns
TypeDescription
UpdateCaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateCaseRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateCaseRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueCase
Returns
TypeDescription
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
NameDescription
builderForValueCase.Builder
Returns
TypeDescription
UpdateCaseRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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