Class Logging.LoggingDestination (2.34.0)

public static final class Logging.LoggingDestination extends GeneratedMessageV3 implements Logging.LoggingDestinationOrBuilder

Configuration of a specific logging destination (the producer project or the consumer project).

Protobuf type google.api.Logging.LoggingDestination

Static Fields

LOGS_FIELD_NUMBER

public static final int LOGS_FIELD_NUMBER
Field Value
TypeDescription
int

MONITORED_RESOURCE_FIELD_NUMBER

public static final int MONITORED_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Logging.LoggingDestination getDefaultInstance()
Returns
TypeDescription
Logging.LoggingDestination

getDescriptor()

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

newBuilder()

public static Logging.LoggingDestination.Builder newBuilder()
Returns
TypeDescription
Logging.LoggingDestination.Builder

newBuilder(Logging.LoggingDestination prototype)

public static Logging.LoggingDestination.Builder newBuilder(Logging.LoggingDestination prototype)
Parameter
NameDescription
prototypeLogging.LoggingDestination
Returns
TypeDescription
Logging.LoggingDestination.Builder

parseDelimitedFrom(InputStream input)

public static Logging.LoggingDestination parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Logging.LoggingDestination
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Logging.LoggingDestination parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Logging.LoggingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Logging.LoggingDestination parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Logging.LoggingDestination
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Logging.LoggingDestination parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Logging.LoggingDestination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Logging.LoggingDestination parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Logging.LoggingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Logging.LoggingDestination> parser()
Returns
TypeDescription
Parser<LoggingDestination>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Logging.LoggingDestination getDefaultInstanceForType()
Returns
TypeDescription
Logging.LoggingDestination

getLogs(int index)

public String getLogs(int index)

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The logs at the given index.

getLogsBytes(int index)

public ByteString getLogsBytes(int index)

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the logs at the given index.

getLogsCount()

public int getLogsCount()

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Returns
TypeDescription
int

The count of logs.

getLogsList()

public ProtocolStringList getLogsList()

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the logs.

getMonitoredResource()

public String getMonitoredResource()

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Returns
TypeDescription
String

The monitoredResource.

getMonitoredResourceBytes()

public ByteString getMonitoredResourceBytes()

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Returns
TypeDescription
ByteString

The bytes for monitoredResource.

getParserForType()

public Parser<Logging.LoggingDestination> getParserForType()
Returns
TypeDescription
Parser<LoggingDestination>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 Logging.LoggingDestination.Builder newBuilderForType()
Returns
TypeDescription
Logging.LoggingDestination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Logging.LoggingDestination.Builder toBuilder()
Returns
TypeDescription
Logging.LoggingDestination.Builder

writeTo(CodedOutputStream output)

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