public final class ResolveServiceRequest extends com.google.protobuf.GeneratedMessageV3 implements ResolveServiceRequestOrBuilder
The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. Looks up a service by its name, returns the service and its endpoints.Protobuf type
google.cloud.servicedirectory.v1beta1.ResolveServiceRequest| Modifier and Type | Class and Description |
|---|---|
static class |
ResolveServiceRequest.Builder
The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService].
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ENDPOINT_FILTER_FIELD_NUMBER |
static int |
MAX_ENDPOINTS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ResolveServiceRequest |
getDefaultInstance() |
ResolveServiceRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEndpointFilter()
Optional.
|
com.google.protobuf.ByteString |
getEndpointFilterBytes()
Optional.
|
int |
getMaxEndpoints()
Optional.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<ResolveServiceRequest> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResolveServiceRequest.Builder |
newBuilder() |
static ResolveServiceRequest.Builder |
newBuilder(ResolveServiceRequest prototype) |
ResolveServiceRequest.Builder |
newBuilderForType() |
protected ResolveServiceRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResolveServiceRequest |
parseDelimitedFrom(InputStream input) |
static ResolveServiceRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResolveServiceRequest |
parseFrom(byte[] data) |
static ResolveServiceRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResolveServiceRequest |
parseFrom(ByteBuffer data) |
static ResolveServiceRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResolveServiceRequest |
parseFrom(com.google.protobuf.ByteString data) |
static ResolveServiceRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResolveServiceRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResolveServiceRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResolveServiceRequest |
parseFrom(InputStream input) |
static ResolveServiceRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResolveServiceRequest> |
parser() |
ResolveServiceRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int MAX_ENDPOINTS_FIELD_NUMBER
public static final int ENDPOINT_FILTER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Required. The name of the service to resolve.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface ResolveServiceRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The name of the service to resolve.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface ResolveServiceRequestOrBuilderpublic int getMaxEndpoints()
Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100. If a value less than one is specified, the Default is used. If a value greater than the Maximum is specified, the Maximum is used.
int32 max_endpoints = 2 [(.google.api.field_behavior) = OPTIONAL];getMaxEndpoints in interface ResolveServiceRequestOrBuilderpublic String getEndpointFilter()
Optional. The filter applied to the endpoints of the resolved service.
General `filter` string syntax:
`<field> <operator> <value> (<logical connector>)`
* `<field>` can be `name`, `address`, `port`, or `metadata.<key>` for
map field
* `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
means `HAS`, and is roughly the same as `=`
* `<value>` must be the same data type as field
* `<logical connector>` can be `AND`, `OR`, `NOT`
Examples of valid filters:
* `metadata.owner` returns endpoints that have a annotation with the key
`owner`, this is the same as `metadata:owner`
* `metadata.protocol=gRPC` returns endpoints that have key/value
`protocol=gRPC`
* `address=192.108.1.105` returns endpoints that have this address
* `port>8080` returns endpoints that have port number larger than 8080
*
`name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
returns endpoints that have name that is alphabetically later than the
string, so "endpoint-e" is returned but "endpoint-a" is not
* `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have
`owner` in annotation key but value is not `sd` AND have key/value
`foo=bar`
* `doesnotexist.foo=bar` returns an empty list. Note that endpoint
doesn't have a field called "doesnotexist". Since the filter does not
match any endpoint, it returns no results
For more information about filtering, see
[API Filtering](https://aip.dev/160).
string endpoint_filter = 3 [(.google.api.field_behavior) = OPTIONAL];getEndpointFilter in interface ResolveServiceRequestOrBuilderpublic com.google.protobuf.ByteString getEndpointFilterBytes()
Optional. The filter applied to the endpoints of the resolved service.
General `filter` string syntax:
`<field> <operator> <value> (<logical connector>)`
* `<field>` can be `name`, `address`, `port`, or `metadata.<key>` for
map field
* `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
means `HAS`, and is roughly the same as `=`
* `<value>` must be the same data type as field
* `<logical connector>` can be `AND`, `OR`, `NOT`
Examples of valid filters:
* `metadata.owner` returns endpoints that have a annotation with the key
`owner`, this is the same as `metadata:owner`
* `metadata.protocol=gRPC` returns endpoints that have key/value
`protocol=gRPC`
* `address=192.108.1.105` returns endpoints that have this address
* `port>8080` returns endpoints that have port number larger than 8080
*
`name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
returns endpoints that have name that is alphabetically later than the
string, so "endpoint-e" is returned but "endpoint-a" is not
* `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have
`owner` in annotation key but value is not `sd` AND have key/value
`foo=bar`
* `doesnotexist.foo=bar` returns an empty list. Note that endpoint
doesn't have a field called "doesnotexist". Since the filter does not
match any endpoint, it returns no results
For more information about filtering, see
[API Filtering](https://aip.dev/160).
string endpoint_filter = 3 [(.google.api.field_behavior) = OPTIONAL];getEndpointFilterBytes in interface ResolveServiceRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResolveServiceRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResolveServiceRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResolveServiceRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResolveServiceRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResolveServiceRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResolveServiceRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResolveServiceRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResolveServiceRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResolveServiceRequest.Builder newBuilder()
public static ResolveServiceRequest.Builder newBuilder(ResolveServiceRequest prototype)
public ResolveServiceRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResolveServiceRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResolveServiceRequest getDefaultInstance()
public static com.google.protobuf.Parser<ResolveServiceRequest> parser()
public com.google.protobuf.Parser<ResolveServiceRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResolveServiceRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.