Package com.google.api
Class ResourceDescriptor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ResourceDescriptor,ResourceDescriptor.Builder>
com.google.api.ResourceDescriptor.Builder
- All Implemented Interfaces:
ResourceDescriptorOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- ResourceDescriptor
public static final class ResourceDescriptor.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ResourceDescriptor,ResourceDescriptor.Builder>
implements ResourceDescriptorOrBuilder
A simple descriptor of a resource type. ResourceDescriptor annotates a resource message (either by means of a protobuf annotation or use in the service config), and associates the resource's schema, the resource type, and the pattern of the resource name. Example: message Topic { // Indicates this message defines a resource schema. // Declares the resource type in the format of {service}/{kind}. // For Kubernetes resources, the format is {api group}/{kind}. option (google.api.resource) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" }; } The ResourceDescriptor Yaml config will look like: resources: - type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" Sometimes, resources have multiple patterns, typically because they can live under multiple parents. Example: message LogEntry { option (google.api.resource) = { type: "logging.googleapis.com/LogEntry" pattern: "projects/{project}/logs/{log}" pattern: "folders/{folder}/logs/{log}" pattern: "organizations/{organization}/logs/{log}" pattern: "billingAccounts/{billing_account}/logs/{log}" }; } The ResourceDescriptor Yaml config will look like: resources: - type: 'logging.googleapis.com/LogEntry' pattern: "projects/{project}/logs/{log}" pattern: "folders/{folder}/logs/{log}" pattern: "organizations/{organization}/logs/{log}" pattern: "billingAccounts/{billing_account}/logs/{log}"Protobuf type
google.api.ResourceDescriptor
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPattern
(Iterable<String> values) Optional.addAllStyle
(Iterable<? extends ResourceDescriptor.Style> values) Style flag(s) for this resource.addAllStyleValue
(Iterable<Integer> values) Style flag(s) for this resource.addPattern
(String value) Optional.addPatternBytes
(com.google.protobuf.ByteString value) Optional.addStyle
(ResourceDescriptor.Style value) Style flag(s) for this resource.addStyleValue
(int value) Style flag(s) for this resource.Optional.Optional.Optional.The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'.The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.Style flag(s) for this resource.The resource type.Optional.int
Optional.Optional.com.google.protobuf.ByteString
Optional.getPattern
(int index) Optional.com.google.protobuf.ByteString
getPatternBytes
(int index) Optional.int
Optional.Optional.The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'.com.google.protobuf.ByteString
The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'.The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.com.google.protobuf.ByteString
The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.getStyle
(int index) Style flag(s) for this resource.int
Style flag(s) for this resource.Style flag(s) for this resource.int
getStyleValue
(int index) Style flag(s) for this resource.Style flag(s) for this resource.getType()
The resource type.com.google.protobuf.ByteString
The resource type.Optional.setHistoryValue
(int value) Optional.setNameField
(String value) Optional.setNameFieldBytes
(com.google.protobuf.ByteString value) Optional.setPattern
(int index, String value) Optional.The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'.setPluralBytes
(com.google.protobuf.ByteString value) The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'.setSingular
(String value) The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.setSingularBytes
(com.google.protobuf.ByteString value) The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.setStyle
(int index, ResourceDescriptor.Style value) Style flag(s) for this resource.setStyleValue
(int index, int value) Style flag(s) for this resource.The resource type.setTypeBytes
(com.google.protobuf.ByteString value) The resource type.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getType
The resource type. It must be in the format of {service_name}/{resource_type_kind}. The `resource_type_kind` must be singular and must not include version numbers. Example: `storage.googleapis.com/Bucket` The value of the resource_type_kind must follow the regular expression /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and should use PascalCase (UpperCamelCase). The maximum number of characters allowed for the `resource_type_kind` is 100.
string type = 1 [json_name = "type"];
- Specified by:
getType
in interfaceResourceDescriptorOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The resource type. It must be in the format of {service_name}/{resource_type_kind}. The `resource_type_kind` must be singular and must not include version numbers. Example: `storage.googleapis.com/Bucket` The value of the resource_type_kind must follow the regular expression /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and should use PascalCase (UpperCamelCase). The maximum number of characters allowed for the `resource_type_kind` is 100.
string type = 1 [json_name = "type"];
- Specified by:
getTypeBytes
in interfaceResourceDescriptorOrBuilder
- Returns:
- The bytes for type.
-
setType
The resource type. It must be in the format of {service_name}/{resource_type_kind}. The `resource_type_kind` must be singular and must not include version numbers. Example: `storage.googleapis.com/Bucket` The value of the resource_type_kind must follow the regular expression /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and should use PascalCase (UpperCamelCase). The maximum number of characters allowed for the `resource_type_kind` is 100.
string type = 1 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
The resource type. It must be in the format of {service_name}/{resource_type_kind}. The `resource_type_kind` must be singular and must not include version numbers. Example: `storage.googleapis.com/Bucket` The value of the resource_type_kind must follow the regular expression /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and should use PascalCase (UpperCamelCase). The maximum number of characters allowed for the `resource_type_kind` is 100.
string type = 1 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setTypeBytes
The resource type. It must be in the format of {service_name}/{resource_type_kind}. The `resource_type_kind` must be singular and must not include version numbers. Example: `storage.googleapis.com/Bucket` The value of the resource_type_kind must follow the regular expression /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and should use PascalCase (UpperCamelCase). The maximum number of characters allowed for the `resource_type_kind` is 100.
string type = 1 [json_name = "type"];
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getPatternList
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Specified by:
getPatternList
in interfaceResourceDescriptorOrBuilder
- Returns:
- A list containing the pattern.
-
getPatternCount
public int getPatternCount()Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Specified by:
getPatternCount
in interfaceResourceDescriptorOrBuilder
- Returns:
- The count of pattern.
-
getPattern
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Specified by:
getPattern
in interfaceResourceDescriptorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The pattern at the given index.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes(int index) Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Specified by:
getPatternBytes
in interfaceResourceDescriptorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the pattern at the given index.
-
setPattern
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Parameters:
index
- The index to set the value at.value
- The pattern to set.- Returns:
- This builder for chaining.
-
addPattern
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Parameters:
value
- The pattern to add.- Returns:
- This builder for chaining.
-
addAllPattern
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Parameters:
values
- The pattern to add.- Returns:
- This builder for chaining.
-
clearPattern
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Returns:
- This builder for chaining.
-
addPatternBytes
Optional. The relative resource name pattern associated with this resource type. The DNS prefix of the full resource name shouldn't be specified here. The path pattern must follow the syntax, which aligns with HTTP binding syntax: Template = Segment { "/" Segment } ; Segment = LITERAL | Variable ; Variable = "{" LITERAL "}" ; Examples: - "projects/{project}/topics/{topic}" - "projects/{project}/knowledgeBases/{knowledge_base}" The components in braces correspond to the IDs for each resource in the hierarchy. It is expected that, if multiple patterns are provided, the same component name (e.g. "project") refers to IDs of the same type of resource.
repeated string pattern = 2 [json_name = "pattern"];
- Parameters:
value
- The bytes of the pattern to add.- Returns:
- This builder for chaining.
-
getNameField
Optional. The field on the resource that designates the resource name field. If omitted, this is assumed to be "name".
string name_field = 3 [json_name = "nameField"];
- Specified by:
getNameField
in interfaceResourceDescriptorOrBuilder
- Returns:
- The nameField.
-
getNameFieldBytes
public com.google.protobuf.ByteString getNameFieldBytes()Optional. The field on the resource that designates the resource name field. If omitted, this is assumed to be "name".
string name_field = 3 [json_name = "nameField"];
- Specified by:
getNameFieldBytes
in interfaceResourceDescriptorOrBuilder
- Returns:
- The bytes for nameField.
-
setNameField
Optional. The field on the resource that designates the resource name field. If omitted, this is assumed to be "name".
string name_field = 3 [json_name = "nameField"];
- Parameters:
value
- The nameField to set.- Returns:
- This builder for chaining.
-
clearNameField
Optional. The field on the resource that designates the resource name field. If omitted, this is assumed to be "name".
string name_field = 3 [json_name = "nameField"];
- Returns:
- This builder for chaining.
-
setNameFieldBytes
Optional. The field on the resource that designates the resource name field. If omitted, this is assumed to be "name".
string name_field = 3 [json_name = "nameField"];
- Parameters:
value
- The bytes for nameField to set.- Returns:
- This builder for chaining.
-
getHistoryValue
public int getHistoryValue()Optional. The historical or future-looking state of the resource pattern. Example: // The InspectTemplate message originally only supported resource // names with organization, and project was added later. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" history: ORIGINALLY_SINGLE_PATTERN }; }
.google.api.ResourceDescriptor.History history = 4 [json_name = "history"];
- Specified by:
getHistoryValue
in interfaceResourceDescriptorOrBuilder
- Returns:
- The enum numeric value on the wire for history.
-
setHistoryValue
Optional. The historical or future-looking state of the resource pattern. Example: // The InspectTemplate message originally only supported resource // names with organization, and project was added later. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" history: ORIGINALLY_SINGLE_PATTERN }; }
.google.api.ResourceDescriptor.History history = 4 [json_name = "history"];
- Parameters:
value
- The history to set.- Returns:
- This builder for chaining.
-
getHistory
Optional. The historical or future-looking state of the resource pattern. Example: // The InspectTemplate message originally only supported resource // names with organization, and project was added later. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" history: ORIGINALLY_SINGLE_PATTERN }; }
.google.api.ResourceDescriptor.History history = 4 [json_name = "history"];
- Specified by:
getHistory
in interfaceResourceDescriptorOrBuilder
- Returns:
- The history.
-
setHistory
Optional. The historical or future-looking state of the resource pattern. Example: // The InspectTemplate message originally only supported resource // names with organization, and project was added later. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" history: ORIGINALLY_SINGLE_PATTERN }; }
.google.api.ResourceDescriptor.History history = 4 [json_name = "history"];
- Parameters:
value
- The enum numeric value on the wire for history to set.- Returns:
- This builder for chaining.
-
clearHistory
Optional. The historical or future-looking state of the resource pattern. Example: // The InspectTemplate message originally only supported resource // names with organization, and project was added later. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" history: ORIGINALLY_SINGLE_PATTERN }; }
.google.api.ResourceDescriptor.History history = 4 [json_name = "history"];
- Returns:
- This builder for chaining.
-
getPlural
The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception to this is for Nested Collections that have stuttering names, as defined in [AIP-122](https://google.aip.dev/122#nested-collections), where the collection ID in the resource name pattern does not necessarily directly match the `plural` value. It is the same concept of the `plural` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Note: The plural form is required even for singleton resources. See https://aip.dev/156
string plural = 5 [json_name = "plural"];
- Specified by:
getPlural
in interfaceResourceDescriptorOrBuilder
- Returns:
- The plural.
-
getPluralBytes
public com.google.protobuf.ByteString getPluralBytes()The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception to this is for Nested Collections that have stuttering names, as defined in [AIP-122](https://google.aip.dev/122#nested-collections), where the collection ID in the resource name pattern does not necessarily directly match the `plural` value. It is the same concept of the `plural` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Note: The plural form is required even for singleton resources. See https://aip.dev/156
string plural = 5 [json_name = "plural"];
- Specified by:
getPluralBytes
in interfaceResourceDescriptorOrBuilder
- Returns:
- The bytes for plural.
-
setPlural
The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception to this is for Nested Collections that have stuttering names, as defined in [AIP-122](https://google.aip.dev/122#nested-collections), where the collection ID in the resource name pattern does not necessarily directly match the `plural` value. It is the same concept of the `plural` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Note: The plural form is required even for singleton resources. See https://aip.dev/156
string plural = 5 [json_name = "plural"];
- Parameters:
value
- The plural to set.- Returns:
- This builder for chaining.
-
clearPlural
The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception to this is for Nested Collections that have stuttering names, as defined in [AIP-122](https://google.aip.dev/122#nested-collections), where the collection ID in the resource name pattern does not necessarily directly match the `plural` value. It is the same concept of the `plural` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Note: The plural form is required even for singleton resources. See https://aip.dev/156
string plural = 5 [json_name = "plural"];
- Returns:
- This builder for chaining.
-
setPluralBytes
The plural name used in the resource name and permission names, such as 'projects' for the resource name of 'projects/{project}' and the permission name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception to this is for Nested Collections that have stuttering names, as defined in [AIP-122](https://google.aip.dev/122#nested-collections), where the collection ID in the resource name pattern does not necessarily directly match the `plural` value. It is the same concept of the `plural` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Note: The plural form is required even for singleton resources. See https://aip.dev/156
string plural = 5 [json_name = "plural"];
- Parameters:
value
- The bytes for plural to set.- Returns:
- This builder for chaining.
-
getSingular
The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.
string singular = 6 [json_name = "singular"];
- Specified by:
getSingular
in interfaceResourceDescriptorOrBuilder
- Returns:
- The singular.
-
getSingularBytes
public com.google.protobuf.ByteString getSingularBytes()The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.
string singular = 6 [json_name = "singular"];
- Specified by:
getSingularBytes
in interfaceResourceDescriptorOrBuilder
- Returns:
- The bytes for singular.
-
setSingular
The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.
string singular = 6 [json_name = "singular"];
- Parameters:
value
- The singular to set.- Returns:
- This builder for chaining.
-
clearSingular
The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.
string singular = 6 [json_name = "singular"];
- Returns:
- This builder for chaining.
-
setSingularBytes
The same concept of the `singular` field in k8s CRD spec https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ Such as "project" for the `resourcemanager.googleapis.com/Project` type.
string singular = 6 [json_name = "singular"];
- Parameters:
value
- The bytes for singular to set.- Returns:
- This builder for chaining.
-
getStyleList
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Specified by:
getStyleList
in interfaceResourceDescriptorOrBuilder
- Returns:
- A list containing the style.
-
getStyleCount
public int getStyleCount()Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Specified by:
getStyleCount
in interfaceResourceDescriptorOrBuilder
- Returns:
- The count of style.
-
getStyle
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Specified by:
getStyle
in interfaceResourceDescriptorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The style at the given index.
-
setStyle
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
index
- The index to set the value at.value
- The style to set.- Returns:
- This builder for chaining.
-
addStyle
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
value
- The style to add.- Returns:
- This builder for chaining.
-
addAllStyle
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
values
- The style to add.- Returns:
- This builder for chaining.
-
clearStyle
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Returns:
- This builder for chaining.
-
getStyleValueList
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Specified by:
getStyleValueList
in interfaceResourceDescriptorOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for style.
-
getStyleValue
public int getStyleValue(int index) Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Specified by:
getStyleValue
in interfaceResourceDescriptorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of style at the given index.
-
setStyleValue
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for style to set.- Returns:
- This builder for chaining.
-
addStyleValue
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
value
- The enum numeric value on the wire for style to add.- Returns:
- This builder for chaining.
-
addAllStyleValue
Style flag(s) for this resource. These indicate that a resource is expected to conform to a given style. See the specific style flags for additional information.
repeated .google.api.ResourceDescriptor.Style style = 10 [json_name = "style"];
- Parameters:
values
- The enum numeric values on the wire for style to add.- Returns:
- This builder for chaining.
-