- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class OSPolicy.Resource.ExecResource.Exec extends GeneratedMessageV3 implements OSPolicy.Resource.ExecResource.ExecOrBuilder
A file or script to execute.
Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OSPolicy.Resource.ExecResource.ExecImplements
OSPolicy.Resource.ExecResource.ExecOrBuilderStatic Fields
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
Type | Description |
int |
FILE_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER
Type | Description |
int |
INTERPRETER_FIELD_NUMBER
public static final int INTERPRETER_FIELD_NUMBER
Type | Description |
int |
OUTPUT_FILE_PATH_FIELD_NUMBER
public static final int OUTPUT_FILE_PATH_FIELD_NUMBER
Type | Description |
int |
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static OSPolicy.Resource.ExecResource.Exec getDefaultInstance()
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static OSPolicy.Resource.ExecResource.Exec.Builder newBuilder()
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Builder |
newBuilder(OSPolicy.Resource.ExecResource.Exec prototype)
public static OSPolicy.Resource.ExecResource.Exec.Builder newBuilder(OSPolicy.Resource.ExecResource.Exec prototype)
Name | Description |
prototype | OSPolicy.Resource.ExecResource.Exec |
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Builder |
parseDelimitedFrom(InputStream input)
public static OSPolicy.Resource.ExecResource.Exec parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseFrom(byte[] data)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseFrom(InputStream input)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.ExecResource.Exec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<OSPolicy.Resource.ExecResource.Exec> parser()
Type | Description |
Parser<Exec> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getArgs(int index)
public String getArgs(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The args at the given index. |
getArgsBytes(int index)
public ByteString getArgsBytes(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the args at the given index. |
getArgsCount()
public int getArgsCount()
Optional arguments to pass to the source during execution.
repeated string args = 3;
Type | Description |
int | The count of args. |
getArgsList()
public ProtocolStringList getArgsList()
Optional arguments to pass to the source during execution.
repeated string args = 3;
Type | Description |
ProtocolStringList | A list containing the args. |
getDefaultInstanceForType()
public OSPolicy.Resource.ExecResource.Exec getDefaultInstanceForType()
Type | Description |
OSPolicy.Resource.ExecResource.Exec |
getFile()
public OSPolicy.Resource.File getFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
Type | Description |
OSPolicy.Resource.File | The file. |
getFileOrBuilder()
public OSPolicy.Resource.FileOrBuilder getFileOrBuilder()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
Type | Description |
OSPolicy.Resource.FileOrBuilder |
getInterpreter()
public OSPolicy.Resource.ExecResource.Exec.Interpreter getInterpreter()
Required. The script interpreter to use.
.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Interpreter | The interpreter. |
getInterpreterValue()
public int getInterpreterValue()
Required. The script interpreter to use.
.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for interpreter. |
getOutputFilePath()
public String getOutputFilePath()
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
string output_file_path = 5;
Type | Description |
String | The outputFilePath. |
getOutputFilePathBytes()
public ByteString getOutputFilePathBytes()
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
string output_file_path = 5;
Type | Description |
ByteString | The bytes for outputFilePath. |
getParserForType()
public Parser<OSPolicy.Resource.ExecResource.Exec> getParserForType()
Type | Description |
Parser<Exec> |
getScript()
public String getScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
Type | Description |
String | The script. |
getScriptBytes()
public ByteString getScriptBytes()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
Type | Description |
ByteString | The bytes for script. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getSourceCase()
public OSPolicy.Resource.ExecResource.Exec.SourceCase getSourceCase()
Type | Description |
OSPolicy.Resource.ExecResource.Exec.SourceCase |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasFile()
public boolean hasFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
Type | Description |
boolean | Whether the file field is set. |
hasScript()
public boolean hasScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
Type | Description |
boolean | Whether the script field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public OSPolicy.Resource.ExecResource.Exec.Builder newBuilderForType()
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicy.Resource.ExecResource.Exec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public OSPolicy.Resource.ExecResource.Exec.Builder toBuilder()
Type | Description |
OSPolicy.Resource.ExecResource.Exec.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |