Class CreateChallengeRequest.Builder (0.17.0)

public static final class CreateChallengeRequest.Builder extends GeneratedMessageV3.Builder<CreateChallengeRequest.Builder> implements CreateChallengeRequestOrBuilder

Message for creating a Challenge

Protobuf type google.cloud.confidentialcomputing.v1.CreateChallengeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateChallengeRequest build()
Returns
TypeDescription
CreateChallengeRequest

buildPartial()

public CreateChallengeRequest buildPartial()
Returns
TypeDescription
CreateChallengeRequest

clear()

public CreateChallengeRequest.Builder clear()
Returns
TypeDescription
CreateChallengeRequest.Builder
Overrides

clearChallenge()

public CreateChallengeRequest.Builder clearChallenge()

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateChallengeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateChallengeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateChallengeRequest.Builder
Overrides

clearParent()

public CreateChallengeRequest.Builder clearParent()

Required. The resource name of the location where the Challenge will be used, in the format projects/*/locations/*.

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

Returns
TypeDescription
CreateChallengeRequest.Builder

This builder for chaining.

clone()

public CreateChallengeRequest.Builder clone()
Returns
TypeDescription
CreateChallengeRequest.Builder
Overrides

getChallenge()

public Challenge getChallenge()

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Challenge

The challenge.

getChallengeBuilder()

public Challenge.Builder getChallengeBuilder()

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Challenge.Builder

getChallengeOrBuilder()

public ChallengeOrBuilder getChallengeOrBuilder()

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChallengeOrBuilder

getDefaultInstanceForType()

public CreateChallengeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateChallengeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the location where the Challenge will be used, in the format projects/*/locations/*.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the location where the Challenge will be used, in the format projects/*/locations/*.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasChallenge()

public boolean hasChallenge()

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the challenge field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeChallenge(Challenge value)

public CreateChallengeRequest.Builder mergeChallenge(Challenge value)

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueChallenge
Returns
TypeDescription
CreateChallengeRequest.Builder

mergeFrom(CreateChallengeRequest other)

public CreateChallengeRequest.Builder mergeFrom(CreateChallengeRequest other)
Parameter
NameDescription
otherCreateChallengeRequest
Returns
TypeDescription
CreateChallengeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChallenge(Challenge value)

public CreateChallengeRequest.Builder setChallenge(Challenge value)

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueChallenge
Returns
TypeDescription
CreateChallengeRequest.Builder

setChallenge(Challenge.Builder builderForValue)

public CreateChallengeRequest.Builder setChallenge(Challenge.Builder builderForValue)

Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.

.google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueChallenge.Builder
Returns
TypeDescription
CreateChallengeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateChallengeRequest.Builder setParent(String value)

Required. The resource name of the location where the Challenge will be used, in the format projects/*/locations/*.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateChallengeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateChallengeRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the location where the Challenge will be used, in the format projects/*/locations/*.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateChallengeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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