Class NodeInitializationAction

  • All Implemented Interfaces:
    NodeInitializationActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class NodeInitializationAction
    extends com.google.protobuf.GeneratedMessageV3
    implements NodeInitializationActionOrBuilder
     Specifies an executable to run on a fully configured node and a
     timeout period for executable completion.
     
    Protobuf type google.cloud.dataproc.v1.NodeInitializationAction
    See Also:
    Serialized Form
    • Field Detail

      • EXECUTABLE_FILE_FIELD_NUMBER

        public static final int EXECUTABLE_FILE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXECUTION_TIMEOUT_FIELD_NUMBER

        public static final int EXECUTION_TIMEOUT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getExecutableFile

        public String getExecutableFile()
         Required. Cloud Storage URI of executable file.
         
        string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getExecutableFile in interface NodeInitializationActionOrBuilder
        Returns:
        The executableFile.
      • getExecutableFileBytes

        public com.google.protobuf.ByteString getExecutableFileBytes()
         Required. Cloud Storage URI of executable file.
         
        string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getExecutableFileBytes in interface NodeInitializationActionOrBuilder
        Returns:
        The bytes for executableFile.
      • hasExecutionTimeout

        public boolean hasExecutionTimeout()
         Optional. Amount of time executable has to complete. Default is
         10 minutes (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Cluster creation fails with an explanatory error message (the
         name of the executable that caused the error and the exceeded timeout
         period) if the executable is not completed at end of the timeout period.
         
        .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasExecutionTimeout in interface NodeInitializationActionOrBuilder
        Returns:
        Whether the executionTimeout field is set.
      • getExecutionTimeout

        public com.google.protobuf.Duration getExecutionTimeout()
         Optional. Amount of time executable has to complete. Default is
         10 minutes (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Cluster creation fails with an explanatory error message (the
         name of the executable that caused the error and the exceeded timeout
         period) if the executable is not completed at end of the timeout period.
         
        .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExecutionTimeout in interface NodeInitializationActionOrBuilder
        Returns:
        The executionTimeout.
      • getExecutionTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder()
         Optional. Amount of time executable has to complete. Default is
         10 minutes (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Cluster creation fails with an explanatory error message (the
         name of the executable that caused the error and the exceeded timeout
         period) if the executable is not completed at end of the timeout period.
         
        .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExecutionTimeoutOrBuilder in interface NodeInitializationActionOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static NodeInitializationAction parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeInitializationAction parseFrom​(ByteBuffer data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeInitializationAction parseFrom​(com.google.protobuf.ByteString data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeInitializationAction parseFrom​(com.google.protobuf.ByteString data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeInitializationAction parseFrom​(byte[] data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static NodeInitializationAction parseFrom​(byte[] data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public NodeInitializationAction.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public NodeInitializationAction.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected NodeInitializationAction.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<NodeInitializationAction> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public NodeInitializationAction getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder