Class Service.CreateAttestorRequest.Builder (1.30.0)

public static final class Service.CreateAttestorRequest.Builder extends GeneratedMessageV3.Builder<Service.CreateAttestorRequest.Builder> implements Service.CreateAttestorRequestOrBuilder

Request message for [BinauthzManagementService.CreateAttestor][].

Protobuf type google.cloud.binaryauthorization.v1.CreateAttestorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Service.CreateAttestorRequest build()
Returns
TypeDescription
Service.CreateAttestorRequest

buildPartial()

public Service.CreateAttestorRequest buildPartial()
Returns
TypeDescription
Service.CreateAttestorRequest

clear()

public Service.CreateAttestorRequest.Builder clear()
Returns
TypeDescription
Service.CreateAttestorRequest.Builder
Overrides

clearAttestor()

public Service.CreateAttestorRequest.Builder clearAttestor()

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

clearAttestorId()

public Service.CreateAttestorRequest.Builder clearAttestorId()

Required. The attestors ID.

string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public Service.CreateAttestorRequest.Builder clearParent()

Required. The parent of this attestor.

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

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

clone()

public Service.CreateAttestorRequest.Builder clone()
Returns
TypeDescription
Service.CreateAttestorRequest.Builder
Overrides

getAttestor()

public Resources.Attestor getAttestor()

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.Attestor

The attestor.

getAttestorBuilder()

public Resources.Attestor.Builder getAttestorBuilder()

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.Attestor.Builder

getAttestorId()

public String getAttestorId()

Required. The attestors ID.

string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The attestorId.

getAttestorIdBytes()

public ByteString getAttestorIdBytes()

Required. The attestors ID.

string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for attestorId.

getAttestorOrBuilder()

public Resources.AttestorOrBuilder getAttestorOrBuilder()

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.AttestorOrBuilder

getDefaultInstanceForType()

public Service.CreateAttestorRequest getDefaultInstanceForType()
Returns
TypeDescription
Service.CreateAttestorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent of this attestor.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent of this attestor.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasAttestor()

public boolean hasAttestor()

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the attestor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAttestor(Resources.Attestor value)

public Service.CreateAttestorRequest.Builder mergeAttestor(Resources.Attestor value)

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueResources.Attestor
Returns
TypeDescription
Service.CreateAttestorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Service.CreateAttestorRequest other)

public Service.CreateAttestorRequest.Builder mergeFrom(Service.CreateAttestorRequest other)
Parameter
NameDescription
otherService.CreateAttestorRequest
Returns
TypeDescription
Service.CreateAttestorRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttestor(Resources.Attestor value)

public Service.CreateAttestorRequest.Builder setAttestor(Resources.Attestor value)

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueResources.Attestor
Returns
TypeDescription
Service.CreateAttestorRequest.Builder

setAttestor(Resources.Attestor.Builder builderForValue)

public Service.CreateAttestorRequest.Builder setAttestor(Resources.Attestor.Builder builderForValue)

Required. The initial attestor value. The service will overwrite the attestor name field with the resource name, in the format projects/*/attestors/*.

.google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueResources.Attestor.Builder
Returns
TypeDescription
Service.CreateAttestorRequest.Builder

setAttestorId(String value)

public Service.CreateAttestorRequest.Builder setAttestorId(String value)

Required. The attestors ID.

string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The attestorId to set.

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

setAttestorIdBytes(ByteString value)

public Service.CreateAttestorRequest.Builder setAttestorIdBytes(ByteString value)

Required. The attestors ID.

string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for attestorId to set.

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public Service.CreateAttestorRequest.Builder setParent(String value)

Required. The parent of this attestor.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public Service.CreateAttestorRequest.Builder setParentBytes(ByteString value)

Required. The parent of this attestor.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
Service.CreateAttestorRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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