Class CreateCaseRequest.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCaseRequest build()
Returns
TypeDescription
CreateCaseRequest

buildPartial()

public CreateCaseRequest buildPartial()
Returns
TypeDescription
CreateCaseRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateCaseRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCaseRequest

getDescriptorForType()

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

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

Required. The case to be created.

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

Parameter
NameDescription
valueCase
Returns
TypeDescription
CreateCaseRequest.Builder

mergeFrom(CreateCaseRequest other)

public CreateCaseRequest.Builder mergeFrom(CreateCaseRequest other)
Parameter
NameDescription
otherCreateCaseRequest
Returns
TypeDescription
CreateCaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCaseRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCaseRequest.Builder
Overrides