public static final class OSPolicy.Resource.FileResource extends com.google.protobuf.GeneratedMessageV3 implements OSPolicy.Resource.FileResourceOrBuilder
A resource that manages the state of a file.Protobuf type
google.cloud.osconfig.v1.OSPolicy.Resource.FileResource| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicy.Resource.FileResource.Builder
A resource that manages the state of a file.
|
static class |
OSPolicy.Resource.FileResource.DesiredState
Desired state of the file.
|
static class |
OSPolicy.Resource.FileResource.SourceCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_FIELD_NUMBER |
static int |
FILE_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
PERMISSIONS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
A a file with this content.
|
com.google.protobuf.ByteString |
getContentBytes()
A a file with this content.
|
static OSPolicy.Resource.FileResource |
getDefaultInstance() |
OSPolicy.Resource.FileResource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OSPolicy.Resource.File |
getFile()
A remote or local source.
|
OSPolicy.Resource.FileOrBuilder |
getFileOrBuilder()
A remote or local source.
|
com.google.protobuf.Parser<OSPolicy.Resource.FileResource> |
getParserForType() |
String |
getPath()
Required.
|
com.google.protobuf.ByteString |
getPathBytes()
Required.
|
String |
getPermissions()
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
com.google.protobuf.ByteString |
getPermissionsBytes()
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
int |
getSerializedSize() |
OSPolicy.Resource.FileResource.SourceCase |
getSourceCase() |
OSPolicy.Resource.FileResource.DesiredState |
getState()
Required.
|
int |
getStateValue()
Required.
|
boolean |
hasContent()
A a file with this content.
|
boolean |
hasFile()
A remote or local source.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OSPolicy.Resource.FileResource.Builder |
newBuilder() |
static OSPolicy.Resource.FileResource.Builder |
newBuilder(OSPolicy.Resource.FileResource prototype) |
OSPolicy.Resource.FileResource.Builder |
newBuilderForType() |
protected OSPolicy.Resource.FileResource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OSPolicy.Resource.FileResource |
parseDelimitedFrom(InputStream input) |
static OSPolicy.Resource.FileResource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.Resource.FileResource |
parseFrom(byte[] data) |
static OSPolicy.Resource.FileResource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.Resource.FileResource |
parseFrom(ByteBuffer data) |
static OSPolicy.Resource.FileResource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.Resource.FileResource |
parseFrom(com.google.protobuf.ByteString data) |
static OSPolicy.Resource.FileResource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.Resource.FileResource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OSPolicy.Resource.FileResource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.Resource.FileResource |
parseFrom(InputStream input) |
static OSPolicy.Resource.FileResource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OSPolicy.Resource.FileResource> |
parser() |
OSPolicy.Resource.FileResource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILE_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int PERMISSIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public OSPolicy.Resource.FileResource.SourceCase getSourceCase()
getSourceCase in interface OSPolicy.Resource.FileResourceOrBuilderpublic boolean hasFile()
A remote or local source.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;hasFile in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.File getFile()
A remote or local source.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;getFile in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileOrBuilder getFileOrBuilder()
A remote or local source.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;getFileOrBuilder in interface OSPolicy.Resource.FileResourceOrBuilderpublic boolean hasContent()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;hasContent in interface OSPolicy.Resource.FileResourceOrBuilderpublic String getContent()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;getContent in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;getContentBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic String getPath()
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];getPath in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];getPathBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic int getStateValue()
Required. Desired state of the file.
.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
getStateValue in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.DesiredState getState()
Required. Desired state of the file.
.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
getState in interface OSPolicy.Resource.FileResourceOrBuilderpublic String getPermissions()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;getPermissions in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getPermissionsBytes()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;getPermissionsBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OSPolicy.Resource.FileResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.Resource.FileResource parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.FileResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.Resource.FileResource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.FileResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.Resource.FileResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicy.Resource.FileResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicy.Resource.FileResource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicy.Resource.FileResource.Builder newBuilder()
public static OSPolicy.Resource.FileResource.Builder newBuilder(OSPolicy.Resource.FileResource prototype)
public OSPolicy.Resource.FileResource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicy.Resource.FileResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicy.Resource.FileResource getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicy.Resource.FileResource> parser()
public com.google.protobuf.Parser<OSPolicy.Resource.FileResource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicy.Resource.FileResource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.