Class AzureClient.Builder (0.16.0)

public static final class AzureClient.Builder extends GeneratedMessageV3.Builder<AzureClient.Builder> implements AzureClientOrBuilder

AzureClient resources hold client authentication information needed by the Anthos Multi-Cloud API to manage Azure resources on your Azure subscription. When an AzureCluster is created, an AzureClient resource needs to be provided and all operations on Azure resources associated to that cluster will authenticate to Azure services using the given client. AzureClient resources are immutable and cannot be modified upon creation. Each AzureClient resource is bound to a single Azure Active Directory Application and tenant.

Protobuf type google.cloud.gkemulticloud.v1.AzureClient

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AzureClient build()
Returns
TypeDescription
AzureClient

buildPartial()

public AzureClient buildPartial()
Returns
TypeDescription
AzureClient

clear()

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

clearAnnotations()

public AzureClient.Builder clearAnnotations()
Returns
TypeDescription
AzureClient.Builder

clearApplicationId()

public AzureClient.Builder clearApplicationId()

Required. The Azure Active Directory Application ID.

string application_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearCreateTime()

public AzureClient.Builder clearCreateTime()

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AzureClient.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AzureClient.Builder clearName()

The name of this resource. AzureClient resource names are formatted as projects/<project-number>/locations/<region>/azureClients/<client-id>. See Resource Names for more details on Google Cloud resource names.

string name = 1;

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPemCertificate()

public AzureClient.Builder clearPemCertificate()

Output only. The PEM encoded x509 certificate.

string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearReconciling()

public AzureClient.Builder clearReconciling()

Output only. If set, there are currently pending changes to the client.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearTenantId()

public AzureClient.Builder clearTenantId()

Required. The Azure Active Directory Tenant ID.

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

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearUid()

public AzureClient.Builder clearUid()

Output only. A globally unique identifier for the client.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

clearUpdateTime()

public AzureClient.Builder clearUpdateTime()

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AzureClient.Builder

clone()

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

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getApplicationId()

public String getApplicationId()

Required. The Azure Active Directory Application ID.

string application_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The applicationId.

getApplicationIdBytes()

public ByteString getApplicationIdBytes()

Required. The Azure Active Directory Application ID.

string application_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for applicationId.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AzureClient getDefaultInstanceForType()
Returns
TypeDescription
AzureClient

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of this resource. AzureClient resource names are formatted as projects/<project-number>/locations/<region>/azureClients/<client-id>. See Resource Names for more details on Google Cloud resource names.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this resource. AzureClient resource names are formatted as projects/<project-number>/locations/<region>/azureClients/<client-id>. See Resource Names for more details on Google Cloud resource names.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPemCertificate()

public String getPemCertificate()

Output only. The PEM encoded x509 certificate.

string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The pemCertificate.

getPemCertificateBytes()

public ByteString getPemCertificateBytes()

Output only. The PEM encoded x509 certificate.

string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for pemCertificate.

getReconciling()

public boolean getReconciling()

Output only. If set, there are currently pending changes to the client.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The reconciling.

getTenantId()

public String getTenantId()

Required. The Azure Active Directory Tenant ID.

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

Returns
TypeDescription
String

The tenantId.

getTenantIdBytes()

public ByteString getTenantIdBytes()

Required. The Azure Active Directory Tenant ID.

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

Returns
TypeDescription
ByteString

The bytes for tenantId.

getUid()

public String getUid()

Output only. A globally unique identifier for the client.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A globally unique identifier for the client.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public AzureClient.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AzureClient.Builder

mergeFrom(AzureClient other)

public AzureClient.Builder mergeFrom(AzureClient other)
Parameter
NameDescription
otherAzureClient
Returns
TypeDescription
AzureClient.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public AzureClient.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AzureClient.Builder

putAllAnnotations(Map<String,String> values)

public AzureClient.Builder putAllAnnotations(Map<String,String> values)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AzureClient.Builder

putAnnotations(String key, String value)

public AzureClient.Builder putAnnotations(String key, String value)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AzureClient.Builder

removeAnnotations(String key)

public AzureClient.Builder removeAnnotations(String key)

Optional. Annotations on the resource. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Keys can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

map<string, string> annotations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
AzureClient.Builder

setApplicationId(String value)

public AzureClient.Builder setApplicationId(String value)

Required. The Azure Active Directory Application ID.

string application_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The applicationId to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setApplicationIdBytes(ByteString value)

public AzureClient.Builder setApplicationIdBytes(ByteString value)

Required. The Azure Active Directory Application ID.

string application_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for applicationId to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public AzureClient.Builder setCreateTime(Timestamp value)

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AzureClient.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AzureClient.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this resource was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AzureClient.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AzureClient.Builder setName(String value)

The name of this resource. AzureClient resource names are formatted as projects/<project-number>/locations/<region>/azureClients/<client-id>. See Resource Names for more details on Google Cloud resource names.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AzureClient.Builder setNameBytes(ByteString value)

The name of this resource. AzureClient resource names are formatted as projects/<project-number>/locations/<region>/azureClients/<client-id>. See Resource Names for more details on Google Cloud resource names.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setPemCertificate(String value)

public AzureClient.Builder setPemCertificate(String value)

Output only. The PEM encoded x509 certificate.

string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The pemCertificate to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setPemCertificateBytes(ByteString value)

public AzureClient.Builder setPemCertificateBytes(ByteString value)

Output only. The PEM encoded x509 certificate.

string pem_certificate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for pemCertificate to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setReconciling(boolean value)

public AzureClient.Builder setReconciling(boolean value)

Output only. If set, there are currently pending changes to the client.

bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

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

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

setTenantId(String value)

public AzureClient.Builder setTenantId(String value)

Required. The Azure Active Directory Tenant ID.

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

Parameter
NameDescription
valueString

The tenantId to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setTenantIdBytes(ByteString value)

public AzureClient.Builder setTenantIdBytes(ByteString value)

Required. The Azure Active Directory Tenant ID.

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

Parameter
NameDescription
valueByteString

The bytes for tenantId to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setUid(String value)

public AzureClient.Builder setUid(String value)

Output only. A globally unique identifier for the client.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setUidBytes(ByteString value)

public AzureClient.Builder setUidBytes(ByteString value)

Output only. A globally unique identifier for the client.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
AzureClient.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public AzureClient.Builder setUpdateTime(Timestamp value)

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AzureClient.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AzureClient.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which this client was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AzureClient.Builder