Package com.google.container.v1
Class LinuxNodeConfig.CustomNodeInit.InitScript
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript
- All Implemented Interfaces:
LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- LinuxNodeConfig.CustomNodeInit
public static final class LinuxNodeConfig.CustomNodeInit.InitScript
extends com.google.protobuf.GeneratedMessage
implements LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
InitScript provide a simply bash script to be executed on the node.Protobuf type
google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInitScript provide a simply bash script to be executed on the node.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 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 TypeMethodDescriptionbooleangetArgs(int index) Optional.com.google.protobuf.ByteStringgetArgsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.DescriptorThe resource name of the secret manager secret hosting the init script.com.google.protobuf.ByteStringThe resource name of the secret manager secret hosting the init script.longThe generation of the init script stored in Gloud Storage.The Cloud Storage URI for storing the init script.com.google.protobuf.ByteStringThe Cloud Storage URI for storing the init script.com.google.protobuf.Parser<LinuxNodeConfig.CustomNodeInit.InitScript>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LinuxNodeConfig.CustomNodeInit.InitScript>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, internalGetMapFieldReflection, 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
-
GCS_URI_FIELD_NUMBER
public static final int GCS_URI_FIELD_NUMBER- See Also:
-
GCS_GENERATION_FIELD_NUMBER
public static final int GCS_GENERATION_FIELD_NUMBER- See Also:
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER- See Also:
-
GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER
public static final int GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getGcsUri
The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Specified by:
getGcsUriin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcsUri.
-
getGcsUriBytes
public com.google.protobuf.ByteString getGcsUriBytes()The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Specified by:
getGcsUriBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The bytes for gcsUri.
-
getGcsGeneration
public long getGcsGeneration()The generation of the init script stored in Gloud Storage. This is the required field to identify the version of the init script. User can get the genetaion from `gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME --format="value(generation)"` or from the "Version history" tab of the object in the Cloud Console UI.
int64 gcs_generation = 2;- Specified by:
getGcsGenerationin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcsGeneration.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsListin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsCountin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The count of args.
-
getArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getGcpSecretManagerSecretUri
The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Specified by:
getGcpSecretManagerSecretUriin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcpSecretManagerSecretUri.
-
getGcpSecretManagerSecretUriBytes
public com.google.protobuf.ByteString getGcpSecretManagerSecretUriBytes()The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Specified by:
getGcpSecretManagerSecretUriBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The bytes for gcpSecretManagerSecretUri.
-
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 LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LinuxNodeConfig.CustomNodeInit.InitScript 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
public static LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilder(LinuxNodeConfig.CustomNodeInit.InitScript prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LinuxNodeConfig.CustomNodeInit.InitScript.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
-