Package com.google.container.v1
Interface SetLabelsRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SetLabelsRequest
,SetLabelsRequest.Builder
public interface SetLabelsRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsResourceLabels(String key)
Required.String
getClusterId()
Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated.com.google.protobuf.ByteString
getClusterIdBytes()
Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated.String
getLabelFingerprint()
Required.com.google.protobuf.ByteString
getLabelFingerprintBytes()
Required.String
getName()
The name (project, location, cluster name) of the cluster to set labels.com.google.protobuf.ByteString
getNameBytes()
The name (project, location, cluster name) of the cluster to set labels.String
getProjectId()
Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated.com.google.protobuf.ByteString
getProjectIdBytes()
Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated.Map<String,String>
getResourceLabels()
Deprecated.int
getResourceLabelsCount()
Required.Map<String,String>
getResourceLabelsMap()
Required.String
getResourceLabelsOrDefault(String key, String defaultValue)
Required.String
getResourceLabelsOrThrow(String key)
Required.String
getZone()
Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated.com.google.protobuf.ByteString
getZoneBytes()
Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getProjectId
@Deprecated String getProjectId()
Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3985Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true];
- Returns:
- The projectId.
-
getProjectIdBytes
@Deprecated com.google.protobuf.ByteString getProjectIdBytes()
Deprecated.google.container.v1.SetLabelsRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3985Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
string project_id = 1 [deprecated = true];
- Returns:
- The bytes for projectId.
-
getZone
@Deprecated String getZone()
Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3991Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true];
- Returns:
- The zone.
-
getZoneBytes
@Deprecated com.google.protobuf.ByteString getZoneBytes()
Deprecated.google.container.v1.SetLabelsRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3991Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
string zone = 2 [deprecated = true];
- Returns:
- The bytes for zone.
-
getClusterId
@Deprecated String getClusterId()
Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3995Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];
- Returns:
- The clusterId.
-
getClusterIdBytes
@Deprecated com.google.protobuf.ByteString getClusterIdBytes()
Deprecated.google.container.v1.SetLabelsRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3995Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];
- Returns:
- The bytes for clusterId.
-
getResourceLabelsCount
int getResourceLabelsCount()
Required. The labels to set for that cluster.
map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
-
containsResourceLabels
boolean containsResourceLabels(String key)
Required. The labels to set for that cluster.
map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
-
getResourceLabels
@Deprecated Map<String,String> getResourceLabels()
Deprecated.UsegetResourceLabelsMap()
instead.
-
getResourceLabelsMap
Map<String,String> getResourceLabelsMap()
Required. The labels to set for that cluster.
map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
-
getResourceLabelsOrDefault
String getResourceLabelsOrDefault(String key, String defaultValue)
Required. The labels to set for that cluster.
map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
-
getResourceLabelsOrThrow
String getResourceLabelsOrThrow(String key)
Required. The labels to set for that cluster.
map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED];
-
getLabelFingerprint
String getLabelFingerprint()
Required. The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Kubernetes Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels. Make a `get()` request to the resource to get the latest fingerprint.
string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
com.google.protobuf.ByteString getLabelFingerprintBytes()
Required. The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Kubernetes Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels. Make a `get()` request to the resource to get the latest fingerprint.
string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for labelFingerprint.
-
getName
String getName()
The name (project, location, cluster name) of the cluster to set labels. Specified in the format `projects/*/locations/*/clusters/*`.
string name = 7;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name (project, location, cluster name) of the cluster to set labels. Specified in the format `projects/*/locations/*/clusters/*`.
string name = 7;
- Returns:
- The bytes for name.
-
-