Package com.google.cloudbuild.v1
Class WorkerPool
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.WorkerPool
- All Implemented Interfaces:
WorkerPoolOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class WorkerPool
extends com.google.protobuf.GeneratedMessage
implements WorkerPoolOrBuilder
Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of workers for general use and have no access to a project's private network. By default, builds submitted to Cloud Build will use a worker from this pool. If your build needs access to resources on a private network, create and use a `WorkerPool` to run your builds. Private `WorkerPool`s give your builds access to any single VPC network that you administer, including any on-prem resources connected to that VPC network. For an overview of private pools, see [Private pools overview](https://cloud.google.com/build/docs/private-pools/private-pools-overview).Protobuf type
google.devtools.cloudbuild.v1.WorkerPool- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for a `WorkerPool`.static enumstatic enumState of the `WorkerPool`.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanUser specified annotations.booleanDeprecated.intUser specified annotations.User specified annotations.getAnnotationsOrDefault(String key, String defaultValue) User specified annotations.User specified annotations.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static WorkerPoolcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.DescriptorA user-specified, human-readable name for the `WorkerPool`.com.google.protobuf.ByteStringA user-specified, human-readable name for the `WorkerPool`.getEtag()Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<WorkerPool>Private Pool configuration.Private Pool configuration.intgetState()Output only.intOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanPrivate Pool configuration.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic WorkerPool.Builderstatic WorkerPool.BuildernewBuilder(WorkerPool prototype) protected WorkerPool.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static WorkerPoolparseDelimitedFrom(InputStream input) static WorkerPoolparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WorkerPoolparseFrom(byte[] data) static WorkerPoolparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WorkerPoolparseFrom(com.google.protobuf.ByteString data) static WorkerPoolparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WorkerPoolparseFrom(com.google.protobuf.CodedInputStream input) static WorkerPoolparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WorkerPoolparseFrom(InputStream input) static WorkerPoolparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WorkerPoolparseFrom(ByteBuffer data) static WorkerPoolparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<WorkerPool>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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
-
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:
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
PRIVATE_POOL_V1_CONFIG_FIELD_NUMBER
public static final int PRIVATE_POOL_V1_CONFIG_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getConfigCase
- Specified by:
getConfigCasein interfaceWorkerPoolOrBuilder
-
getName
Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceWorkerPoolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceWorkerPoolOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
string display_name = 2;- Specified by:
getDisplayNamein interfaceWorkerPoolOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceWorkerPoolOrBuilder- Returns:
- The bytes for displayName.
-
getUid
Output only. A unique identifier for the `WorkerPool`.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceWorkerPoolOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. A unique identifier for the `WorkerPool`.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceWorkerPoolOrBuilder- Returns:
- The bytes for uid.
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:WorkerPoolOrBuilderUser specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;- Specified by:
getAnnotationsCountin interfaceWorkerPoolOrBuilder
-
containsAnnotations
User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;- Specified by:
containsAnnotationsin interfaceWorkerPoolOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceWorkerPoolOrBuilder
-
getAnnotationsMap
User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;- Specified by:
getAnnotationsMapin interfaceWorkerPoolOrBuilder
-
getAnnotationsOrDefault
User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;- Specified by:
getAnnotationsOrDefaultin interfaceWorkerPoolOrBuilder
-
getAnnotationsOrThrow
User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;- Specified by:
getAnnotationsOrThrowin interfaceWorkerPoolOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Time at which the request to create the `WorkerPool` was received.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceWorkerPoolOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time at which the request to create the `WorkerPool` was received.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceWorkerPoolOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time at which the request to create the `WorkerPool` was received.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceWorkerPoolOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Time at which the request to update the `WorkerPool` was received.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceWorkerPoolOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Time at which the request to update the `WorkerPool` was received.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceWorkerPoolOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time at which the request to update the `WorkerPool` was received.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceWorkerPoolOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()Output only. Time at which the request to delete the `WorkerPool` was received.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeleteTimein interfaceWorkerPoolOrBuilder- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()Output only. Time at which the request to delete the `WorkerPool` was received.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimein interfaceWorkerPoolOrBuilder- Returns:
- The deleteTime.
-
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()Output only. Time at which the request to delete the `WorkerPool` was received.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimeOrBuilderin interfaceWorkerPoolOrBuilder
-
getStateValue
public int getStateValue()Output only. `WorkerPool` state.
.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceWorkerPoolOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. `WorkerPool` state.
.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceWorkerPoolOrBuilder- Returns:
- The state.
-
hasPrivatePoolV1Config
public boolean hasPrivatePoolV1Config()Private Pool configuration.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;- Specified by:
hasPrivatePoolV1Configin interfaceWorkerPoolOrBuilder- Returns:
- Whether the privatePoolV1Config field is set.
-
getPrivatePoolV1Config
Private Pool configuration.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;- Specified by:
getPrivatePoolV1Configin interfaceWorkerPoolOrBuilder- Returns:
- The privatePoolV1Config.
-
getPrivatePoolV1ConfigOrBuilder
Private Pool configuration.
.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;- Specified by:
getPrivatePoolV1ConfigOrBuilderin interfaceWorkerPoolOrBuilder
-
getEtag
Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagin interfaceWorkerPoolOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagBytesin interfaceWorkerPoolOrBuilder- Returns:
- The bytes for etag.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 WorkerPool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerPool parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerPool parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerPool parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerPool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkerPool parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WorkerPool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static WorkerPool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WorkerPool 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 WorkerPool.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-