com.google.api.FieldPolicyOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-common-protos Show documentation
Show all versions of proto-google-common-protos Show documentation
PROTO library for proto-google-common-protos
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/policy.proto
// Protobuf Java Version: 3.25.5
package com.google.api;
public interface FieldPolicyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.FieldPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
*
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
*
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
*
*
* string selector = 1;
*
* @return The selector.
*/
java.lang.String getSelector();
/**
*
*
*
* Selects one or more request or response message fields to apply this
* `FieldPolicy`.
*
* When a `FieldPolicy` is used in proto annotation, the selector must
* be left as empty. The service config generator will automatically fill
* the correct value.
*
* When a `FieldPolicy` is used in service config, the selector must be a
* comma-separated string with valid request or response field paths,
* such as "foo.bar" or "foo.bar,foo.baz".
*
*
* string selector = 1;
*
* @return The bytes for selector.
*/
com.google.protobuf.ByteString getSelectorBytes();
/**
*
*
*
* Specifies the required permission(s) for the resource referred to by the
* field. It requires the field contains a valid resource reference, and
* the request must pass the permission checks to proceed. For example,
* "resourcemanager.projects.get".
*
*
* string resource_permission = 2;
*
* @return The resourcePermission.
*/
java.lang.String getResourcePermission();
/**
*
*
*
* Specifies the required permission(s) for the resource referred to by the
* field. It requires the field contains a valid resource reference, and
* the request must pass the permission checks to proceed. For example,
* "resourcemanager.projects.get".
*
*
* string resource_permission = 2;
*
* @return The bytes for resourcePermission.
*/
com.google.protobuf.ByteString getResourcePermissionBytes();
/**
*
*
*
* Specifies the resource type for the resource referred to by the field.
*
*
* string resource_type = 3;
*
* @return The resourceType.
*/
java.lang.String getResourceType();
/**
*
*
*
* Specifies the resource type for the resource referred to by the field.
*
*
* string resource_type = 3;
*
* @return The bytes for resourceType.
*/
com.google.protobuf.ByteString getResourceTypeBytes();
}