Class ServiceContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
- com.google.devtools.clouderrorreporting.v1beta1.ServiceContext.Builder
-
- All Implemented Interfaces:
ServiceContextOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ServiceContext
public static final class ServiceContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder> implements ServiceContextOrBuilder
Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel.
Protobuf typegoogle.devtools.clouderrorreporting.v1beta1.ServiceContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceContext.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceContext
build()
ServiceContext
buildPartial()
ServiceContext.Builder
clear()
ServiceContext.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServiceContext.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServiceContext.Builder
clearResourceType()
Type of the MonitoredResource.ServiceContext.Builder
clearService()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.ServiceContext.Builder
clearVersion()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.ServiceContext.Builder
clone()
ServiceContext
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getResourceType()
Type of the MonitoredResource.com.google.protobuf.ByteString
getResourceTypeBytes()
Type of the MonitoredResource.String
getService()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.com.google.protobuf.ByteString
getServiceBytes()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.String
getVersion()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.com.google.protobuf.ByteString
getVersionBytes()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServiceContext.Builder
mergeFrom(ServiceContext other)
ServiceContext.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServiceContext.Builder
mergeFrom(com.google.protobuf.Message other)
ServiceContext.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceContext.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceContext.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ServiceContext.Builder
setResourceType(String value)
Type of the MonitoredResource.ServiceContext.Builder
setResourceTypeBytes(com.google.protobuf.ByteString value)
Type of the MonitoredResource.ServiceContext.Builder
setService(String value)
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.ServiceContext.Builder
setServiceBytes(com.google.protobuf.ByteString value)
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.ServiceContext.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceContext.Builder
setVersion(String value)
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.ServiceContext.Builder
setVersionBytes(com.google.protobuf.ByteString value)
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
clear
public ServiceContext.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
getDefaultInstanceForType
public ServiceContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServiceContext build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServiceContext buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServiceContext.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
setField
public ServiceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
clearField
public ServiceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
clearOneof
public ServiceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
setRepeatedField
public ServiceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
addRepeatedField
public ServiceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
mergeFrom
public ServiceContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceContext.Builder>
-
mergeFrom
public ServiceContext.Builder mergeFrom(ServiceContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
mergeFrom
public ServiceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceContext.Builder>
- Throws:
IOException
-
getService
public String getService()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;
- Specified by:
getService
in interfaceServiceContextOrBuilder
- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;
- Specified by:
getServiceBytes
in interfaceServiceContextOrBuilder
- Returns:
- The bytes for service.
-
setService
public ServiceContext.Builder setService(String value)
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;
- Parameters:
value
- The service to set.- Returns:
- This builder for chaining.
-
clearService
public ServiceContext.Builder clearService()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;
- Returns:
- This builder for chaining.
-
setServiceBytes
public ServiceContext.Builder setServiceBytes(com.google.protobuf.ByteString value)
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;
- Parameters:
value
- The bytes for service to set.- Returns:
- This builder for chaining.
-
getVersion
public String getVersion()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
- Specified by:
getVersion
in interfaceServiceContextOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
- Specified by:
getVersionBytes
in interfaceServiceContextOrBuilder
- Returns:
- The bytes for version.
-
setVersion
public ServiceContext.Builder setVersion(String value)
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public ServiceContext.Builder clearVersion()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
- Returns:
- This builder for chaining.
-
setVersionBytes
public ServiceContext.Builder setVersionBytes(com.google.protobuf.ByteString value)
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
getResourceType
public String getResourceType()
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;
- Specified by:
getResourceType
in interfaceServiceContextOrBuilder
- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;
- Specified by:
getResourceTypeBytes
in interfaceServiceContextOrBuilder
- Returns:
- The bytes for resourceType.
-
setResourceType
public ServiceContext.Builder setResourceType(String value)
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
public ServiceContext.Builder clearResourceType()
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;
- Returns:
- This builder for chaining.
-
setResourceTypeBytes
public ServiceContext.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServiceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
mergeUnknownFields
public final ServiceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>
-
-