Class CreateCaseRequest.Builder (0.31.0)

public static final class CreateCaseRequest.Builder extends GeneratedMessageV3.Builder<CreateCaseRequest.Builder> implements CreateCaseRequestOrBuilder

The request message for the CreateCase endpoint.

Protobuf type google.cloud.support.v2.CreateCaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCaseRequest build()
Returns
Type Description
CreateCaseRequest

buildPartial()

public CreateCaseRequest buildPartial()
Returns
Type Description
CreateCaseRequest

clear()

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

clearCase()

public CreateCaseRequest.Builder clearCase()

Required. The case to be created.

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

Returns
Type Description
CreateCaseRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCaseRequest.Builder clearParent()

Required. The name of the Google Cloud Resource under which the case should be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateCaseRequest.Builder

This builder for chaining.

clone()

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

getCase()

public Case getCase()

Required. The case to be created.

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

Returns
Type Description
Case

The case.

getCaseBuilder()

public Case.Builder getCaseBuilder()

Required. The case to be created.

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

Returns
Type Description
Case.Builder

getCaseOrBuilder()

public CaseOrBuilder getCaseOrBuilder()

Required. The case to be created.

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

Returns
Type Description
CaseOrBuilder

getDefaultInstanceForType()

public CreateCaseRequest getDefaultInstanceForType()
Returns
Type Description
CreateCaseRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The name of the Google Cloud Resource under which the case should be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the Google Cloud Resource under which the case should be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasCase()

public boolean hasCase()

Required. The case to be created.

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

Returns
Type Description
boolean

Whether the case 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 CreateCaseRequest.Builder mergeCase(Case value)

Required. The case to be created.

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

Parameter
Name Description
value Case
Returns
Type Description
CreateCaseRequest.Builder

mergeFrom(CreateCaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCase(Case value)

public CreateCaseRequest.Builder setCase(Case value)

Required. The case to be created.

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

Parameter
Name Description
value Case
Returns
Type Description
CreateCaseRequest.Builder

setCase(Case.Builder builderForValue)

public CreateCaseRequest.Builder setCase(Case.Builder builderForValue)

Required. The case to be created.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCaseRequest.Builder setParent(String value)

Required. The name of the Google Cloud Resource under which the case should be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCaseRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCaseRequest.Builder setParentBytes(ByteString value)

Required. The name of the Google Cloud Resource under which the case should be created.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCaseRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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