Class Instance.Config.Builder (0.8.0)

public static final class Instance.Config.Builder extends GeneratedMessageV3.Builder<Instance.Config.Builder> implements Instance.ConfigOrBuilder

Available configurations to provision an Instance.

Protobuf type google.cloud.apigeeregistry.v1.Instance.Config

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.Config build()
Returns
TypeDescription
Instance.Config

buildPartial()

public Instance.Config buildPartial()
Returns
TypeDescription
Instance.Config

clear()

public Instance.Config.Builder clear()
Returns
TypeDescription
Instance.Config.Builder
Overrides

clearCmekKeyName()

public Instance.Config.Builder clearCmekKeyName()

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location.

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

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLocation()

public Instance.Config.Builder clearLocation()

Output only. The GCP location where the Instance resides.

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Instance.Config.Builder clone()
Returns
TypeDescription
Instance.Config.Builder
Overrides

getCmekKeyName()

public String getCmekKeyName()

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location.

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

Returns
TypeDescription
String

The cmekKeyName.

getCmekKeyNameBytes()

public ByteString getCmekKeyNameBytes()

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location.

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

Returns
TypeDescription
ByteString

The bytes for cmekKeyName.

getDefaultInstanceForType()

public Instance.Config getDefaultInstanceForType()
Returns
TypeDescription
Instance.Config

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocation()

public String getLocation()

Output only. The GCP location where the Instance resides.

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The GCP location where the Instance resides.

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for location.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.Config other)

public Instance.Config.Builder mergeFrom(Instance.Config other)
Parameter
NameDescription
otherInstance.Config
Returns
TypeDescription
Instance.Config.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCmekKeyName(String value)

public Instance.Config.Builder setCmekKeyName(String value)

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location.

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

Parameter
NameDescription
valueString

The cmekKeyName to set.

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

setCmekKeyNameBytes(ByteString value)

public Instance.Config.Builder setCmekKeyNameBytes(ByteString value)

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location.

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

Parameter
NameDescription
valueByteString

The bytes for cmekKeyName to set.

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocation(String value)

public Instance.Config.Builder setLocation(String value)

Output only. The GCP location where the Instance resides.

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public Instance.Config.Builder setLocationBytes(ByteString value)

Output only. The GCP location where the Instance resides.

string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
Instance.Config.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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