Class SetLoggingServiceRequest (2.63.0)

publicfinalclassSetLoggingServiceRequestextendsGeneratedMessageV3implementsSetLoggingServiceRequestOrBuilder

SetLoggingServiceRequest sets the logging service of a cluster.

Protobuf type google.container.v1.SetLoggingServiceRequest

Static Fields

CLUSTER_ID_FIELD_NUMBER

publicstaticfinalintCLUSTER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LOGGING_SERVICE_FIELD_NUMBER

publicstaticfinalintLOGGING_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

publicstaticfinalintPROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ZONE_FIELD_NUMBER

publicstaticfinalintZONE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticSetLoggingServiceRequestgetDefaultInstance()
Returns
TypeDescription
SetLoggingServiceRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticSetLoggingServiceRequest.BuildernewBuilder()
Returns
TypeDescription
SetLoggingServiceRequest.Builder

newBuilder(SetLoggingServiceRequest prototype)

publicstaticSetLoggingServiceRequest.BuildernewBuilder(SetLoggingServiceRequestprototype)
Parameter
NameDescription
prototypeSetLoggingServiceRequest
Returns
TypeDescription
SetLoggingServiceRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticSetLoggingServiceRequestparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticSetLoggingServiceRequestparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSetLoggingServiceRequestparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSetLoggingServiceRequestparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticSetLoggingServiceRequestparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticSetLoggingServiceRequestparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSetLoggingServiceRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetLoggingServiceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<SetLoggingServiceRequest>parser()
Returns
TypeDescription
Parser<SetLoggingServiceRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClusterId() (deprecated)

publicStringgetClusterId()

Deprecated.google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3256

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes() (deprecated)

publicByteStringgetClusterIdBytes()

Deprecated.google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3256

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

publicSetLoggingServiceRequestgetDefaultInstanceForType()
Returns
TypeDescription
SetLoggingServiceRequest

getLoggingService()

publicStringgetLoggingService()

Required. The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The loggingService.

getLoggingServiceBytes()

publicByteStringgetLoggingServiceBytes()

Required. The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for loggingService.

getName()

publicStringgetName()

The name (project, location, cluster) of the cluster to set logging. Specified in the format projects/*/locations/*/clusters/*.

string name = 5;

Returns
TypeDescription
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The name (project, location, cluster) of the cluster to set logging. Specified in the format projects/*/locations/*/clusters/*.

string name = 5;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

publicParser<SetLoggingServiceRequest>getParserForType()
Returns
TypeDescription
Parser<SetLoggingServiceRequest>
Overrides

getProjectId() (deprecated)

publicStringgetProjectId()

Deprecated.google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3246

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

publicByteStringgetProjectIdBytes()

Deprecated.google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3246

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for projectId.

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getZone() (deprecated)

publicStringgetZone()

Deprecated.google.container.v1.SetLoggingServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3252

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

publicByteStringgetZoneBytes()

Deprecated.google.container.v1.SetLoggingServiceRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3252

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for zone.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicSetLoggingServiceRequest.BuildernewBuilderForType()
Returns
TypeDescription
SetLoggingServiceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSetLoggingServiceRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SetLoggingServiceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicSetLoggingServiceRequest.BuildertoBuilder()
Returns
TypeDescription
SetLoggingServiceRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException