Class ConfigFile (3.1.0)

public final class ConfigFile extends GeneratedMessageV3 implements ConfigFileOrBuilder

Generic specification of a source configuration file

Protobuf type google.api.servicemanagement.v1.ConfigFile

Implements

ConfigFileOrBuilder

Static Fields

FILE_CONTENTS_FIELD_NUMBER

public static final int FILE_CONTENTS_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_PATH_FIELD_NUMBER

public static final int FILE_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_TYPE_FIELD_NUMBER

public static final int FILE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConfigFile getDefaultInstance()
Returns
TypeDescription
ConfigFile

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConfigFile.Builder newBuilder()
Returns
TypeDescription
ConfigFile.Builder

newBuilder(ConfigFile prototype)

public static ConfigFile.Builder newBuilder(ConfigFile prototype)
Parameter
NameDescription
prototypeConfigFile
Returns
TypeDescription
ConfigFile.Builder

parseDelimitedFrom(InputStream input)

public static ConfigFile parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConfigFile parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConfigFile parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConfigFile parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConfigFile parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConfigFile parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConfigFile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigFile
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConfigFile> parser()
Returns
TypeDescription
Parser<ConfigFile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConfigFile getDefaultInstanceForType()
Returns
TypeDescription
ConfigFile

getFileContents()

public ByteString getFileContents()

The bytes that constitute the file.

bytes file_contents = 3;

Returns
TypeDescription
ByteString

The fileContents.

getFilePath()

public String getFilePath()

The file name of the configuration file (full or relative path).

string file_path = 1;

Returns
TypeDescription
String

The filePath.

getFilePathBytes()

public ByteString getFilePathBytes()

The file name of the configuration file (full or relative path).

string file_path = 1;

Returns
TypeDescription
ByteString

The bytes for filePath.

getFileType()

public ConfigFile.FileType getFileType()

The type of configuration file this represents.

.google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4;

Returns
TypeDescription
ConfigFile.FileType

The fileType.

getFileTypeValue()

public int getFileTypeValue()

The type of configuration file this represents.

.google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for fileType.

getParserForType()

public Parser<ConfigFile> getParserForType()
Returns
TypeDescription
Parser<ConfigFile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConfigFile.Builder newBuilderForType()
Returns
TypeDescription
ConfigFile.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConfigFile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConfigFile.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConfigFile.Builder toBuilder()
Returns
TypeDescription
ConfigFile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException