Class StackdriverLoggingConfig (2.14.0)

public final class StackdriverLoggingConfig extends GeneratedMessageV3 implements StackdriverLoggingConfigOrBuilder

Configuration options for writing logs to Stackdriver Logging.

Protobuf type google.cloud.tasks.v2.StackdriverLoggingConfig

Static Fields

SAMPLING_RATIO_FIELD_NUMBER

public static final int SAMPLING_RATIO_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StackdriverLoggingConfig getDefaultInstance()
Returns
TypeDescription
StackdriverLoggingConfig

getDescriptor()

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

newBuilder()

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

newBuilder(StackdriverLoggingConfig prototype)

public static StackdriverLoggingConfig.Builder newBuilder(StackdriverLoggingConfig prototype)
Parameter
NameDescription
prototypeStackdriverLoggingConfig
Returns
TypeDescription
StackdriverLoggingConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public StackdriverLoggingConfig getDefaultInstanceForType()
Returns
TypeDescription
StackdriverLoggingConfig

getParserForType()

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

getSamplingRatio()

public double getSamplingRatio()

Specifies the fraction of operations to write to Stackdriver Logging. This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.

double sampling_ratio = 1;

Returns
TypeDescription
double

The samplingRatio.

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 StackdriverLoggingConfig.Builder newBuilderForType()
Returns
TypeDescription
StackdriverLoggingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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