Package com.buildless.projects
Class Project
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.projects.Project
- All Implemented Interfaces:
ProjectOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Project
extends com.google.protobuf.GeneratedMessageV3
implements ProjectOrBuilder
## Project Describes the top-level structure of a Buildless Project. Projects are the primary unit of organization within the remote build caching and tooling system. Each project has a unique key and an assigned `name` value; the unique key is generated by the server, and the name is assigned by the user. The `name` of the cache is used to reference the cache from configurations, from URLs, and over the API. The `id` is mainly for backend use only. ### Project Ownership Each project has a single owner, which is an account scope. This can be an organization or an individual user. The owner always has full access to data held by the project. ### Project Settings Each project has a set of settings which control how the project behaves. These settings are mutable, and can be adjusted by the owner of the project, or any user with sufficient permissions for the owning account scope (for example, both org owners and admins can adjust project settings for an org-owned project). Project settings structure is designed to evolve over time, subject to safe protocol evolution rules stipulated by Protocol Buffers. Values like the project's visibility mode are stored in the top-level settings message, while other settings are stored in nested messages. This allows for new settings to be added without breaking existing clients. ### Draft Objects Projects can be created using the `Draft` sub-record, which applies validation rules and property structure for a project which hasn't been persisted yet. After submission via the relevant API, a `Project` is returned. Updates can similarly be applied via the `Update` sub-record.Protobuf type
buildless.projects.Project- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class## Project Describes the top-level structure of a Buildless Project.static final class## Project Draft Models the structure of a project when it is in a draft state.static interfacestatic final class## Project Settings Models project top-level settings.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether this project is currently active.booleanWhether this project is marked as "archived," in which case it is inactive.com.google.protobuf.TimestampSpecifies the moment at which this project was originally created.com.google.protobuf.TimestampOrBuilderSpecifies the moment at which this project was originally created.Specifies information about the user who created this project.Specifies information about the user who created this project.static Projectstatic final com.google.protobuf.Descriptors.Descriptor"Display name" assigned to this project.com.google.protobuf.ByteString"Display name" assigned to this project.getKey()Key uniquely identifying this project.Key uniquely identifying this project.getName()"Short name" assigned to this project.com.google.protobuf.ByteString"Short name" assigned to this project.com.google.protobuf.Parser<Project>intEffective settings which apply to the current project, and which govern how the project behaves.Effective settings which apply to the current project, and which govern how the project behaves.booleanWhether this project is marked as "tombstoned," in which case it is scheduled for deletion.com.google.protobuf.TimestampSpecifies the last time this project was updated.com.google.protobuf.TimestampOrBuilderSpecifies the last time this project was updated.Specifies information about the user who last updated this project.Specifies information about the user who last updated this project.booleanSpecifies the moment at which this project was originally created.booleanSpecifies information about the user who created this project.inthashCode()booleanhasKey()Key uniquely identifying this project.booleanEffective settings which apply to the current project, and which govern how the project behaves.booleanSpecifies the last time this project was updated.booleanSpecifies information about the user who last updated this project.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Project.Builderstatic Project.BuildernewBuilder(Project prototype) protected Project.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ProjectparseDelimitedFrom(InputStream input) static ProjectparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProjectparseFrom(byte[] data) static ProjectparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProjectparseFrom(com.google.protobuf.ByteString data) static ProjectparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProjectparseFrom(com.google.protobuf.CodedInputStream input) static ProjectparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProjectparseFrom(InputStream input) static ProjectparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProjectparseFrom(ByteBuffer data) static ProjectparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Project>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
SETTINGS_FIELD_NUMBER
public static final int SETTINGS_FIELD_NUMBER- See Also:
-
ACTIVE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER- See Also:
-
ARCHIVED_FIELD_NUMBER
public static final int ARCHIVED_FIELD_NUMBER- See Also:
-
TOMBSTONED_FIELD_NUMBER
public static final int TOMBSTONED_FIELD_NUMBER- See Also:
-
UPDATED_BY_FIELD_NUMBER
public static final int UPDATED_BY_FIELD_NUMBER- See Also:
-
CREATED_BY_FIELD_NUMBER
public static final int CREATED_BY_FIELD_NUMBER- See Also:
-
UPDATED_AT_FIELD_NUMBER
public static final int UPDATED_AT_FIELD_NUMBER- See Also:
-
CREATED_AT_FIELD_NUMBER
public static final int CREATED_AT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasKey
public boolean hasKey()Key uniquely identifying this project. Project keys can carry a UUID or a name; when embedded in a `Project` record the `uuid` is provided, since `name` is available as a top-level field.
.buildless.projects.ProjectKey key = 1 [json_name = "key", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasKeyin interfaceProjectOrBuilder- Returns:
- Whether the key field is set.
-
getKey
Key uniquely identifying this project. Project keys can carry a UUID or a name; when embedded in a `Project` record the `uuid` is provided, since `name` is available as a top-level field.
.buildless.projects.ProjectKey key = 1 [json_name = "key", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getKeyin interfaceProjectOrBuilder- Returns:
- The key.
-
getKeyOrBuilder
Key uniquely identifying this project. Project keys can carry a UUID or a name; when embedded in a `Project` record the `uuid` is provided, since `name` is available as a top-level field.
.buildless.projects.ProjectKey key = 1 [json_name = "key", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getKeyOrBuilderin interfaceProjectOrBuilder
-
getName
"Short name" assigned to this project. The short name is either provided by the user, or generated by the server, at the time the project is created. It cannot be changed throughout the lifecycle of the project. The short name is used to reference the project in configurations, URLs, and over the API.
string name = 2 [json_name = "name", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceProjectOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()"Short name" assigned to this project. The short name is either provided by the user, or generated by the server, at the time the project is created. It cannot be changed throughout the lifecycle of the project. The short name is used to reference the project in configurations, URLs, and over the API.
string name = 2 [json_name = "name", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceProjectOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
"Display name" assigned to this project. The display name is provided by the user, and can be changed at any time. The display name is used to label the project within UIs and when presenting lists of projects to users.
string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceProjectOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()"Display name" assigned to this project. The display name is provided by the user, and can be changed at any time. The display name is used to label the project within UIs and when presenting lists of projects to users.
string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceProjectOrBuilder- Returns:
- The bytes for displayName.
-
hasSettings
public boolean hasSettings()Effective settings which apply to the current project, and which govern how the project behaves. See the `Settings` message for more information about which setting fields are supported.
.buildless.projects.Project.Settings settings = 10 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSettingsin interfaceProjectOrBuilder- Returns:
- Whether the settings field is set.
-
getSettings
Effective settings which apply to the current project, and which govern how the project behaves. See the `Settings` message for more information about which setting fields are supported.
.buildless.projects.Project.Settings settings = 10 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSettingsin interfaceProjectOrBuilder- Returns:
- The settings.
-
getSettingsOrBuilder
Effective settings which apply to the current project, and which govern how the project behaves. See the `Settings` message for more information about which setting fields are supported.
.buildless.projects.Project.Settings settings = 10 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSettingsOrBuilderin interfaceProjectOrBuilder
-
getActive
public boolean getActive()Whether this project is currently active. This is always `true` if the parent account is not suspended, and the project is not `archived` or `tombstoned`.
bool active = 11 [json_name = "active", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActivein interfaceProjectOrBuilder- Returns:
- The active.
-
getArchived
public boolean getArchived()Whether this project is marked as "archived," in which case it is inactive. Projects in an archived state cannot be used for reads or writes.
bool archived = 12 [json_name = "archived", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchivedin interfaceProjectOrBuilder- Returns:
- The archived.
-
getTombstoned
public boolean getTombstoned()Whether this project is marked as "tombstoned," in which case it is scheduled for deletion. Projects which are tombstoned are always archived first.
bool tombstoned = 13 [json_name = "tombstoned", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTombstonedin interfaceProjectOrBuilder- Returns:
- The tombstoned.
-
hasUpdatedBy
public boolean hasUpdatedBy()Specifies information about the user who last updated this project.
.buildless.accounts.UserReference updated_by = 96 [json_name = "updatedBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdatedByin interfaceProjectOrBuilder- Returns:
- Whether the updatedBy field is set.
-
getUpdatedBy
Specifies information about the user who last updated this project.
.buildless.accounts.UserReference updated_by = 96 [json_name = "updatedBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdatedByin interfaceProjectOrBuilder- Returns:
- The updatedBy.
-
getUpdatedByOrBuilder
Specifies information about the user who last updated this project.
.buildless.accounts.UserReference updated_by = 96 [json_name = "updatedBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdatedByOrBuilderin interfaceProjectOrBuilder
-
hasCreatedBy
public boolean hasCreatedBy()Specifies information about the user who created this project.
.buildless.accounts.UserReference created_by = 97 [json_name = "createdBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreatedByin interfaceProjectOrBuilder- Returns:
- Whether the createdBy field is set.
-
getCreatedBy
Specifies information about the user who created this project.
.buildless.accounts.UserReference created_by = 97 [json_name = "createdBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatedByin interfaceProjectOrBuilder- Returns:
- The createdBy.
-
getCreatedByOrBuilder
Specifies information about the user who created this project.
.buildless.accounts.UserReference created_by = 97 [json_name = "createdBy", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatedByOrBuilderin interfaceProjectOrBuilder
-
hasUpdatedAt
public boolean hasUpdatedAt()Specifies the last time this project was updated. Changes with each update to the project record.
.google.protobuf.Timestamp updated_at = 98 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdatedAtin interfaceProjectOrBuilder- Returns:
- Whether the updatedAt field is set.
-
getUpdatedAt
public com.google.protobuf.Timestamp getUpdatedAt()Specifies the last time this project was updated. Changes with each update to the project record.
.google.protobuf.Timestamp updated_at = 98 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdatedAtin interfaceProjectOrBuilder- Returns:
- The updatedAt.
-
getUpdatedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder()Specifies the last time this project was updated. Changes with each update to the project record.
.google.protobuf.Timestamp updated_at = 98 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdatedAtOrBuilderin interfaceProjectOrBuilder
-
hasCreatedAt
public boolean hasCreatedAt()Specifies the moment at which this project was originally created. Does not change over the lifecycle of the project record.
.google.protobuf.Timestamp created_at = 99 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreatedAtin interfaceProjectOrBuilder- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
public com.google.protobuf.Timestamp getCreatedAt()Specifies the moment at which this project was originally created. Does not change over the lifecycle of the project record.
.google.protobuf.Timestamp created_at = 99 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatedAtin interfaceProjectOrBuilder- Returns:
- The createdAt.
-
getCreatedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()Specifies the moment at which this project was originally created. Does not change over the lifecycle of the project record.
.google.protobuf.Timestamp created_at = 99 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatedAtOrBuilderin interfaceProjectOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Project parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Project parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Project parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Project parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Project parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Project parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Project parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Project parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Project parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Project.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-