Class ApiSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
- com.google.cloud.apigeeregistry.v1.ApiSpec.Builder
-
- All Implemented Interfaces:
ApiSpecOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ApiSpec
public static final class ApiSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder> implements ApiSpecOrBuilder
Describes a version of an API in a structured way. ApiSpecs provide formal descriptions that consumers can use to use a version. ApiSpec resources are intended to be fully-resolved descriptions of an ApiVersion. When specs consist of multiple files, these should be bundled together (e.g., in a zip archive) and stored as a unit. Multiple specs can exist to provide representations in different API description formats. Synchronization of these representations would be provided by tooling and background services.
Protobuf typegoogle.cloud.apigeeregistry.v1.ApiSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApiSpec.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiSpec
build()
ApiSpec
buildPartial()
ApiSpec.Builder
clear()
ApiSpec.Builder
clearAnnotations()
ApiSpec.Builder
clearContents()
Input only.ApiSpec.Builder
clearCreateTime()
Output only.ApiSpec.Builder
clearDescription()
A detailed description.ApiSpec.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ApiSpec.Builder
clearFilename()
A possibly-hierarchical name used to refer to the spec from other specs.ApiSpec.Builder
clearHash()
Output only.ApiSpec.Builder
clearLabels()
ApiSpec.Builder
clearMimeType()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type).ApiSpec.Builder
clearName()
Resource name.ApiSpec.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApiSpec.Builder
clearRevisionCreateTime()
Output only.ApiSpec.Builder
clearRevisionId()
Output only.ApiSpec.Builder
clearRevisionUpdateTime()
Output only.ApiSpec.Builder
clearSizeBytes()
Output only.ApiSpec.Builder
clearSourceUri()
The original source URI of the spec (if one exists).ApiSpec.Builder
clone()
boolean
containsAnnotations(String key)
Annotations attach non-identifying metadata to resources.boolean
containsLabels(String key)
Labels attach identifying metadata to resources.Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
Annotations attach non-identifying metadata to resources.Map<String,String>
getAnnotationsMap()
Annotations attach non-identifying metadata to resources.String
getAnnotationsOrDefault(String key, String defaultValue)
Annotations attach non-identifying metadata to resources.String
getAnnotationsOrThrow(String key)
Annotations attach non-identifying metadata to resources.com.google.protobuf.ByteString
getContents()
Input only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.ApiSpec
getDefaultInstanceForType()
String
getDescription()
A detailed description.com.google.protobuf.ByteString
getDescriptionBytes()
A detailed description.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFilename()
A possibly-hierarchical name used to refer to the spec from other specs.com.google.protobuf.ByteString
getFilenameBytes()
A possibly-hierarchical name used to refer to the spec from other specs.String
getHash()
Output only.com.google.protobuf.ByteString
getHashBytes()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels attach identifying metadata to resources.Map<String,String>
getLabelsMap()
Labels attach identifying metadata to resources.String
getLabelsOrDefault(String key, String defaultValue)
Labels attach identifying metadata to resources.String
getLabelsOrThrow(String key)
Labels attach identifying metadata to resources.String
getMimeType()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type).com.google.protobuf.ByteString
getMimeTypeBytes()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type).Map<String,String>
getMutableAnnotations()
Deprecated.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Resource name.com.google.protobuf.ByteString
getNameBytes()
Resource name.com.google.protobuf.Timestamp
getRevisionCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getRevisionCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getRevisionCreateTimeOrBuilder()
Output only.String
getRevisionId()
Output only.com.google.protobuf.ByteString
getRevisionIdBytes()
Output only.com.google.protobuf.Timestamp
getRevisionUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getRevisionUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getRevisionUpdateTimeOrBuilder()
Output only.int
getSizeBytes()
Output only.String
getSourceUri()
The original source URI of the spec (if one exists).com.google.protobuf.ByteString
getSourceUriBytes()
The original source URI of the spec (if one exists).boolean
hasCreateTime()
Output only.boolean
hasRevisionCreateTime()
Output only.boolean
hasRevisionUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ApiSpec.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
mergeFrom(ApiSpec other)
ApiSpec.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ApiSpec.Builder
mergeFrom(com.google.protobuf.Message other)
ApiSpec.Builder
mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
mergeRevisionUpdateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ApiSpec.Builder
putAllAnnotations(Map<String,String> values)
Annotations attach non-identifying metadata to resources.ApiSpec.Builder
putAllLabels(Map<String,String> values)
Labels attach identifying metadata to resources.ApiSpec.Builder
putAnnotations(String key, String value)
Annotations attach non-identifying metadata to resources.ApiSpec.Builder
putLabels(String key, String value)
Labels attach identifying metadata to resources.ApiSpec.Builder
removeAnnotations(String key)
Annotations attach non-identifying metadata to resources.ApiSpec.Builder
removeLabels(String key)
Labels attach identifying metadata to resources.ApiSpec.Builder
setContents(com.google.protobuf.ByteString value)
Input only.ApiSpec.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ApiSpec.Builder
setDescription(String value)
A detailed description.ApiSpec.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description.ApiSpec.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiSpec.Builder
setFilename(String value)
A possibly-hierarchical name used to refer to the spec from other specs.ApiSpec.Builder
setFilenameBytes(com.google.protobuf.ByteString value)
A possibly-hierarchical name used to refer to the spec from other specs.ApiSpec.Builder
setHash(String value)
Output only.ApiSpec.Builder
setHashBytes(com.google.protobuf.ByteString value)
Output only.ApiSpec.Builder
setMimeType(String value)
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type).ApiSpec.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type).ApiSpec.Builder
setName(String value)
Resource name.ApiSpec.Builder
setNameBytes(com.google.protobuf.ByteString value)
Resource name.ApiSpec.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ApiSpec.Builder
setRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ApiSpec.Builder
setRevisionId(String value)
Output only.ApiSpec.Builder
setRevisionIdBytes(com.google.protobuf.ByteString value)
Output only.ApiSpec.Builder
setRevisionUpdateTime(com.google.protobuf.Timestamp value)
Output only.ApiSpec.Builder
setRevisionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ApiSpec.Builder
setSizeBytes(int value)
Output only.ApiSpec.Builder
setSourceUri(String value)
The original source URI of the spec (if one exists).ApiSpec.Builder
setSourceUriBytes(com.google.protobuf.ByteString value)
The original source URI of the spec (if one exists).ApiSpec.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
clear
public ApiSpec.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
getDefaultInstanceForType
public ApiSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiSpec build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiSpec buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiSpec.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
setField
public ApiSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
clearField
public ApiSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
clearOneof
public ApiSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
setRepeatedField
public ApiSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
addRepeatedField
public ApiSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
mergeFrom
public ApiSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApiSpec.Builder>
-
mergeFrom
public ApiSpec.Builder mergeFrom(ApiSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
mergeFrom
public ApiSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApiSpec.Builder>
- Throws:
IOException
-
getName
public String getName()
Resource name.
string name = 1;
- Specified by:
getName
in interfaceApiSpecOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name.
string name = 1;
- Specified by:
getNameBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for name.
-
setName
public ApiSpec.Builder setName(String value)
Resource name.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ApiSpec.Builder clearName()
Resource name.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public ApiSpec.Builder setNameBytes(com.google.protobuf.ByteString value)
Resource name.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFilename
public String getFilename()
A possibly-hierarchical name used to refer to the spec from other specs.
string filename = 2;
- Specified by:
getFilename
in interfaceApiSpecOrBuilder
- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()
A possibly-hierarchical name used to refer to the spec from other specs.
string filename = 2;
- Specified by:
getFilenameBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for filename.
-
setFilename
public ApiSpec.Builder setFilename(String value)
A possibly-hierarchical name used to refer to the spec from other specs.
string filename = 2;
- Parameters:
value
- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
public ApiSpec.Builder clearFilename()
A possibly-hierarchical name used to refer to the spec from other specs.
string filename = 2;
- Returns:
- This builder for chaining.
-
setFilenameBytes
public ApiSpec.Builder setFilenameBytes(com.google.protobuf.ByteString value)
A possibly-hierarchical name used to refer to the spec from other specs.
string filename = 2;
- Parameters:
value
- The bytes for filename to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A detailed description.
string description = 3;
- Specified by:
getDescription
in interfaceApiSpecOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A detailed description.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public ApiSpec.Builder setDescription(String value)
A detailed description.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ApiSpec.Builder clearDescription()
A detailed description.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ApiSpec.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description.
string description = 3;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getRevisionId
public String getRevisionId()
Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionId
in interfaceApiSpecOrBuilder
- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionIdBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for revisionId.
-
setRevisionId
public ApiSpec.Builder setRevisionId(String value)
Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
public ApiSpec.Builder clearRevisionId()
Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setRevisionIdBytes
public ApiSpec.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceApiSpecOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceApiSpecOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public ApiSpec.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public ApiSpec.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public ApiSpec.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public ApiSpec.Builder clearCreateTime()
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation timestamp; when the spec resource was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceApiSpecOrBuilder
-
hasRevisionCreateTime
public boolean hasRevisionCreateTime()
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasRevisionCreateTime
in interfaceApiSpecOrBuilder
- Returns:
- Whether the revisionCreateTime field is set.
-
getRevisionCreateTime
public com.google.protobuf.Timestamp getRevisionCreateTime()
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionCreateTime
in interfaceApiSpecOrBuilder
- Returns:
- The revisionCreateTime.
-
setRevisionCreateTime
public ApiSpec.Builder setRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setRevisionCreateTime
public ApiSpec.Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeRevisionCreateTime
public ApiSpec.Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearRevisionCreateTime
public ApiSpec.Builder clearRevisionCreateTime()
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder()
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()
Output only. Revision creation timestamp; when the represented revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionCreateTimeOrBuilder
in interfaceApiSpecOrBuilder
-
hasRevisionUpdateTime
public boolean hasRevisionUpdateTime()
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasRevisionUpdateTime
in interfaceApiSpecOrBuilder
- Returns:
- Whether the revisionUpdateTime field is set.
-
getRevisionUpdateTime
public com.google.protobuf.Timestamp getRevisionUpdateTime()
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionUpdateTime
in interfaceApiSpecOrBuilder
- Returns:
- The revisionUpdateTime.
-
setRevisionUpdateTime
public ApiSpec.Builder setRevisionUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setRevisionUpdateTime
public ApiSpec.Builder setRevisionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeRevisionUpdateTime
public ApiSpec.Builder mergeRevisionUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearRevisionUpdateTime
public ApiSpec.Builder clearRevisionUpdateTime()
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getRevisionUpdateTimeBuilder()
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRevisionUpdateTimeOrBuilder()
Output only. Last update timestamp: when the represented revision was last modified.
.google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevisionUpdateTimeOrBuilder
in interfaceApiSpecOrBuilder
-
getMimeType
public String getMimeType()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
string mime_type = 8;
- Specified by:
getMimeType
in interfaceApiSpecOrBuilder
- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
string mime_type = 8;
- Specified by:
getMimeTypeBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for mimeType.
-
setMimeType
public ApiSpec.Builder setMimeType(String value)
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
string mime_type = 8;
- Parameters:
value
- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
public ApiSpec.Builder clearMimeType()
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
string mime_type = 8;
- Returns:
- This builder for chaining.
-
setMimeTypeBytes
public ApiSpec.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
string mime_type = 8;
- Parameters:
value
- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getSizeBytes
public int getSizeBytes()
Output only. The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSizeBytes
in interfaceApiSpecOrBuilder
- Returns:
- The sizeBytes.
-
setSizeBytes
public ApiSpec.Builder setSizeBytes(int value)
Output only. The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The sizeBytes to set.- Returns:
- This builder for chaining.
-
clearSizeBytes
public ApiSpec.Builder clearSizeBytes()
Output only. The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getHash
public String getHash()
Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHash
in interfaceApiSpecOrBuilder
- Returns:
- The hash.
-
getHashBytes
public com.google.protobuf.ByteString getHashBytes()
Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHashBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for hash.
-
setHash
public ApiSpec.Builder setHash(String value)
Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
public ApiSpec.Builder clearHash()
Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setHashBytes
public ApiSpec.Builder setHashBytes(com.google.protobuf.ByteString value)
Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for hash to set.- Returns:
- This builder for chaining.
-
getSourceUri
public String getSourceUri()
The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
string source_uri = 11;
- Specified by:
getSourceUri
in interfaceApiSpecOrBuilder
- Returns:
- The sourceUri.
-
getSourceUriBytes
public com.google.protobuf.ByteString getSourceUriBytes()
The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
string source_uri = 11;
- Specified by:
getSourceUriBytes
in interfaceApiSpecOrBuilder
- Returns:
- The bytes for sourceUri.
-
setSourceUri
public ApiSpec.Builder setSourceUri(String value)
The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
string source_uri = 11;
- Parameters:
value
- The sourceUri to set.- Returns:
- This builder for chaining.
-
clearSourceUri
public ApiSpec.Builder clearSourceUri()
The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
string source_uri = 11;
- Returns:
- This builder for chaining.
-
setSourceUriBytes
public ApiSpec.Builder setSourceUriBytes(com.google.protobuf.ByteString value)
The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
string source_uri = 11;
- Parameters:
value
- The bytes for sourceUri to set.- Returns:
- This builder for chaining.
-
getContents
public com.google.protobuf.ByteString getContents()
Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getContents
in interfaceApiSpecOrBuilder
- Returns:
- The contents.
-
setContents
public ApiSpec.Builder setContents(com.google.protobuf.ByteString value)
Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The contents to set.- Returns:
- This builder for chaining.
-
clearContents
public ApiSpec.Builder clearContents()
Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ApiSpecOrBuilder
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
- Specified by:
getLabelsCount
in interfaceApiSpecOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
- Specified by:
containsLabels
in interfaceApiSpecOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceApiSpecOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
- Specified by:
getLabelsMap
in interfaceApiSpecOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
- Specified by:
getLabelsOrDefault
in interfaceApiSpecOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
- Specified by:
getLabelsOrThrow
in interfaceApiSpecOrBuilder
-
clearLabels
public ApiSpec.Builder clearLabels()
-
removeLabels
public ApiSpec.Builder removeLabels(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public ApiSpec.Builder putLabels(String key, String value)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
-
putAllLabels
public ApiSpec.Builder putAllLabels(Map<String,String> values)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 14;
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:ApiSpecOrBuilder
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
- Specified by:
getAnnotationsCount
in interfaceApiSpecOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
- Specified by:
containsAnnotations
in interfaceApiSpecOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceApiSpecOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
- Specified by:
getAnnotationsMap
in interfaceApiSpecOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
- Specified by:
getAnnotationsOrDefault
in interfaceApiSpecOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
- Specified by:
getAnnotationsOrThrow
in interfaceApiSpecOrBuilder
-
clearAnnotations
public ApiSpec.Builder clearAnnotations()
-
removeAnnotations
public ApiSpec.Builder removeAnnotations(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public ApiSpec.Builder putAnnotations(String key, String value)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
-
putAllAnnotations
public ApiSpec.Builder putAllAnnotations(Map<String,String> values)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 15;
-
setUnknownFields
public final ApiSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
mergeUnknownFields
public final ApiSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiSpec.Builder>
-
-