public interface CreateAttributeRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAttribute()
public abstract Attribute getAttribute()Required. The attribute to create.
 
 .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| Attribute | The attribute. | 
getAttributeId()
public abstract String getAttributeId()Optional. The ID to use for the attribute, which will become the final component of the attribute's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another attribute resource in the API hub.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/. 
 string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| String | The attributeId. | 
getAttributeIdBytes()
public abstract ByteString getAttributeIdBytes()Optional. The ID to use for the attribute, which will become the final component of the attribute's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another attribute resource in the API hub.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/. 
 string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for attributeId. | 
getAttributeOrBuilder()
public abstract AttributeOrBuilder getAttributeOrBuilder()Required. The attribute to create.
 
 .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| AttributeOrBuilder | |
getParent()
public abstract String getParent() Required. The parent resource for Attribute.
 Format: projects/{project}/locations/{location}
 
 string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| String | The parent. | 
getParentBytes()
public abstract ByteString getParentBytes() Required. The parent resource for Attribute.
 Format: projects/{project}/locations/{location}
 
 string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for parent. | 
hasAttribute()
public abstract boolean hasAttribute()Required. The attribute to create.
 
 .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the attribute field is set. |