Class Service.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
com.google.api.serviceusage.v1beta1.Service.Builder
- All Implemented Interfaces:
ServiceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Service
public static final class Service.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
implements ServiceOrBuilder
A service that is available for use by the consumer.Protobuf type
google.api.serviceusage.v1beta1.Service-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The service configuration of the available service.The resource name of the consumer and service.The resource name of the consumer.Whether or not the service has been enabled for use by the consumer.The service configuration of the available service.The service configuration of the available service.The service configuration of the available service.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The resource name of the consumer and service.com.google.protobuf.ByteStringThe resource name of the consumer and service.The resource name of the consumer.com.google.protobuf.ByteStringThe resource name of the consumer.getState()Whether or not the service has been enabled for use by the consumer.intWhether or not the service has been enabled for use by the consumer.booleanThe service configuration of the available service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConfig(ServiceConfig value) The service configuration of the available service.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfig(ServiceConfig value) The service configuration of the available service.setConfig(ServiceConfig.Builder builderForValue) The service configuration of the available service.The resource name of the consumer and service.setNameBytes(com.google.protobuf.ByteString value) The resource name of the consumer and service.The resource name of the consumer.setParentBytes(com.google.protobuf.ByteString value) The resource name of the consumer.Whether or not the service has been enabled for use by the consumer.setStateValue(int value) Whether or not the service has been enabled for use by the consumer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>- Throws:
IOException
-
getName
The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
string name = 1;- Specified by:
getNamein interfaceServiceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
string name = 1;- Specified by:
getNameBytesin interfaceServiceOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParent
The resource name of the consumer. A valid name would be: - `projects/123`
string parent = 5;- Specified by:
getParentin interfaceServiceOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()The resource name of the consumer. A valid name would be: - `projects/123`
string parent = 5;- Specified by:
getParentBytesin interfaceServiceOrBuilder- Returns:
- The bytes for parent.
-
setParent
The resource name of the consumer. A valid name would be: - `projects/123`
string parent = 5;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
The resource name of the consumer. A valid name would be: - `projects/123`
string parent = 5;- Returns:
- This builder for chaining.
-
setParentBytes
The resource name of the consumer. A valid name would be: - `projects/123`
string parent = 5;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2;- Specified by:
hasConfigin interfaceServiceOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2;- Specified by:
getConfigin interfaceServiceOrBuilder- Returns:
- The config.
-
setConfig
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2; -
setConfig
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2; -
mergeConfig
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2; -
clearConfig
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2; -
getConfigBuilder
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2; -
getConfigOrBuilder
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1beta1.ServiceConfig config = 2;- Specified by:
getConfigOrBuilderin interfaceServiceOrBuilder
-
getStateValue
public int getStateValue()Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1beta1.State state = 4;- Specified by:
getStateValuein interfaceServiceOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1beta1.State state = 4;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1beta1.State state = 4;- Specified by:
getStatein interfaceServiceOrBuilder- Returns:
- The state.
-
setState
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1beta1.State state = 4;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1beta1.State state = 4;- Returns:
- This builder for chaining.
-